diff --git a/src/Tests/CollectWebTest.php b/src/Tests/CollectWebTest.php index bc21bb5..4f6f259 100644 --- a/src/Tests/CollectWebTest.php +++ b/src/Tests/CollectWebTest.php @@ -123,6 +123,19 @@ class CollectWebTest extends WebTestBase { $this->assertNoLink($web_page_container->getOriginUri()); $this->clickLink(t('2')); $this->assertResponse(200); + + // Apply Fetch URL schema plugin. + // Assert a generated web page is accessible. + $this->clickLink(t('Set up a Collect Fetch URL schema')); + $this->drupalPostForm(NULL, [ + 'id' => 'collect_fetch_url', + ], t('Save')); + $this->clickLink(t('Show content in a new window')); + $this->assertResponse(200); + $this->drupalGet('admin/content/collect'); + $this->clickLink(t('View')); + $this->clickLink(t('Show content in a new window')); + $this->assertResponse(200); } /**