You are here

public function FacetsBlockTest::testBlockAvailability in Facets Block 8

Test that the block is available.

File

tests/src/Functional/FacetsBlockTest.php, line 50

Class

FacetsBlockTest
Tests the Facets Block.

Namespace

Drupal\Tests\facets_block\Functional

Code

public function testBlockAvailability() {
  $this
    ->drupalGet('/admin/structure/block');
  $this
    ->clickLink('Place block');
  $this
    ->assertSession()
    ->pageTextContains('Facets Block');
  $this
    ->assertSession()
    ->linkByHrefExists('admin/structure/block/add/facets_block/', 0);
}