public function FacetsBlockTest::testBlockPlacement in Facets Block 8
Test that the block can be placed.
File
- tests/
src/ Functional/ FacetsBlockTest.php, line 60
Class
- FacetsBlockTest
- Tests the Facets Block.
Namespace
Drupal\Tests\facets_block\FunctionalCode
public function testBlockPlacement() {
$this
->drupalPlaceBlock('facets_block', [
'region' => 'content',
'label' => 'Facets Block',
'id' => 'facetsblock',
]);
$this
->drupalGet('admin/structure/block');
$this
->assertSession()
->pageTextContains('Facets Block');
$this
->drupalGet('<front>');
$this
->assertSession()
->pageTextContains('Facets Block');
}