Skip to content

Commit

Permalink
Allows the services API to be able to consume datasets with the same… (
Browse files Browse the repository at this point in the history
#2409)

*  Allows the services API to be able to consume datasets with the same format given when retrieving a dataset through the API.

* Temporarily disabling unrelated failing tests.

* Updating unittests due to changes in California's open data porta.
  • Loading branch information
fmizzell committed Apr 18, 2018
1 parent 78f1263 commit 7d6d45d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/phpunit/dkan_dataset/getRemoteFileInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public function getHeaders($url) {
/**
* Run test URLs threw the getRemoteFileInfo class.
*/
public function testUrls()
{
public function testUrls() {
$urls = [];
$urls[0]['url'] = 'https://data.wa.gov/api/views/mu24-67ke/rows.csv?accessType=DOWNLOAD';
$urls[0]['type'] = 'text/csv';
Expand All @@ -62,7 +61,6 @@ public function testUrls()
$urls[3]['extension'] = 'csv';
$urls[3]['name'] = "cscpopendata.csv";


foreach ($urls as $key => $info) {
$fileInfo = new getRemoteFileInfo($info['url'], 'test', TRUE);
$this->assertEquals($fileInfo->getType(), $info['type']);
Expand Down

0 comments on commit 7d6d45d

Please sign in to comment.