function AnnounceBlockTest::setUp

Same name in other branches
  1. 10 core/modules/announcements_feed/tests/src/FunctionalJavascript/AnnounceBlockTest.php \Drupal\Tests\announcements_feed\FunctionalJavascript\AnnounceBlockTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/announcements_feed/tests/src/FunctionalJavascript/AnnounceBlockTest.php, line 44

Class

AnnounceBlockTest
Test the announcement block test visibility.

Namespace

Drupal\Tests\announcements_feed\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    AnnounceTestHttpClientMiddleware::setAnnounceTestEndpoint('/announce-feed-json/community-feeds');
    $this->announceBlock = $this->placeBlock('announce_block', [
        'label' => 'Announcements Feed',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.