forked from np43/dkan-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"Landing page" missing in data.json (#2032)
* Tests for landingPage in data.json (#1975) * Tests for node:url in landingPage form (#1975) * Adds landingPage to data.json feed (#1975) * Updates data.json path to server and adds CHANGELOG * reads data.json file into array instead of string * removes data. from json file * removes data. from json file and switches back to file get contents function * Try restoring data.json path to dataJsonTest.php * Fix linter. * Trying unit tests first. Observed that tests passes on CIRCLE before behat tests are run. Checking to see if something left over by behat is causing issue by running unittests first. * Reinstall dkan between unit tests and behavioral tests. * Rename dataJsonTest.php DataJsonTest.php to match class name. * Add ODSM memory settings to circle.settings.php * Fix php coding standards issues on circle.settings.php * Make linter happy. * Use docker db settings in circle.
- Loading branch information
Showing
9 changed files
with
70 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/** | ||
* Class DataJsonTest. | ||
* | ||
* Tests for landingPage key in /data.json file datasets. | ||
*/ | ||
class DataJsonTest extends PHPUnit_Framework_TestCase { | ||
|
||
/** | ||
* Verify data.json exists. | ||
*/ | ||
public function testDataJson() { | ||
$base_url = 'http://127.0.0.1:8888/'; | ||
$path = 'data.json'; | ||
$file = $base_url . $path; | ||
$contents = file_get_contents($file); | ||
$decoded = json_decode($contents, TRUE); | ||
// Asserts that landingPage key is in data.json file. | ||
$this->assertArrayHasKey('landingPage', $decoded['dataset'][0]); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters