function AlertsJsonFeedTest::testAnnounceFeedEmpty
Same name in this branch
- 11.x core/modules/announcements_feed/tests/src/FunctionalJavascript/AlertsJsonFeedTest.php \Drupal\Tests\announcements_feed\FunctionalJavascript\AlertsJsonFeedTest::testAnnounceFeedEmpty()
Same name and namespace in other branches
- 10 core/modules/announcements_feed/tests/src/FunctionalJavascript/AlertsJsonFeedTest.php \Drupal\Tests\announcements_feed\FunctionalJavascript\AlertsJsonFeedTest::testAnnounceFeedEmpty()
- main core/modules/announcements_feed/tests/src/FunctionalJavascript/AlertsJsonFeedTest.php \Drupal\Tests\announcements_feed\FunctionalJavascript\AlertsJsonFeedTest::testAnnounceFeedEmpty()
- main core/modules/announcements_feed/tests/src/Functional/AlertsJsonFeedTest.php \Drupal\Tests\announcements_feed\Functional\AlertsJsonFeedTest::testAnnounceFeedEmpty()
Check with an empty JSON feed.
File
-
core/
modules/ announcements_feed/ tests/ src/ Functional/ AlertsJsonFeedTest.php, line 87
Class
- AlertsJsonFeedTest
- Test the access announcement according to json feed changes.
Namespace
Drupal\Tests\announcements_feed\FunctionalCode
public function testAnnounceFeedEmpty() : void {
// Change the feed url and reset temp storage.
AnnounceTestHttpClientMiddleware::setAnnounceTestEndpoint('/announce-feed-json/empty');
$this->drupalLogin($this->user);
$this->drupalGet('/admin/announcements_feed');
$this->assertStringContainsString('No announcements available', $this->getSession()
->getPage()
->getHtml());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.