|
|
@ -98,6 +98,10 @@ class JsonldSelfReferenceReactionTest extends IslandoraFunctionalTestBase { |
|
|
|
$this->assertSession() |
|
|
|
$this->assertSession() |
|
|
|
->pageTextContains("The context $context_name has been saved"); |
|
|
|
->pageTextContains("The context $context_name has been saved"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The first time a Context is saved, you need to clear the cache. |
|
|
|
|
|
|
|
// Subsequent changes to the context don't need a cache rebuild, though. |
|
|
|
|
|
|
|
drupal_flush_all_caches(); |
|
|
|
|
|
|
|
|
|
|
|
$new_contents = $this->drupalGet($url . '?_format=jsonld'); |
|
|
|
$new_contents = $this->drupalGet($url . '?_format=jsonld'); |
|
|
|
$json = \GuzzleHttp\json_decode($new_contents, TRUE); |
|
|
|
$json = \GuzzleHttp\json_decode($new_contents, TRUE); |
|
|
|
$this->assertEquals( |
|
|
|
$this->assertEquals( |
|
|
@ -177,6 +181,10 @@ class JsonldSelfReferenceReactionTest extends IslandoraFunctionalTestBase { |
|
|
|
$this->assertSession() |
|
|
|
$this->assertSession() |
|
|
|
->pageTextContains("The context $context_name has been saved"); |
|
|
|
->pageTextContains("The context $context_name has been saved"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The first time a Context is saved, you need to clear the cache. |
|
|
|
|
|
|
|
// Subsequent changes to the context don't need a cache rebuild, though. |
|
|
|
|
|
|
|
drupal_flush_all_caches(); |
|
|
|
|
|
|
|
|
|
|
|
$new_contents = $this->drupalGet($media_url . '?_format=jsonld'); |
|
|
|
$new_contents = $this->drupalGet($media_url . '?_format=jsonld'); |
|
|
|
$json = \GuzzleHttp\json_decode($new_contents, TRUE); |
|
|
|
$json = \GuzzleHttp\json_decode($new_contents, TRUE); |
|
|
|
$this->assertEquals( |
|
|
|
$this->assertEquals( |
|
|
|