protected function TestHelperTrait::assertFacetBlocksAppear in Facets 8
Asserts that a facet block appears.
12 calls to TestHelperTrait::assertFacetBlocksAppear()
- HierarchicalFacetIntegrationTest::testHierarchicalFacet in modules/
facets_summary/ tests/ src/ Functional/ HierarchicalFacetIntegrationTest.php - Test the hierarchical facets functionality.
- IntegrationTest::testCount in modules/
facets_summary/ tests/ src/ Functional/ IntegrationTest.php - Tests counts for summaries.
- IntegrationTest::testEmptyFacetLinks in modules/
facets_summary/ tests/ src/ Functional/ IntegrationTest.php - Tests first facet doesn't have any item in for a particular filter.
- IntegrationTest::testFacetDependencies in tests/
src/ Functional/ IntegrationTest.php - Tests facet dependencies.
- IntegrationTest::testFacetSourceVisibility in tests/
src/ Functional/ IntegrationTest.php - Tests the visibility of facet source.
File
- tests/
src/ Functional/ TestHelperTrait.php, line 79
Class
- TestHelperTrait
- Adds helpers for test methods.
Namespace
Drupal\Tests\facets\FunctionalCode
protected function assertFacetBlocksAppear() {
foreach ($this->blocks as $block) {
$this
->xpath('//div[@id = :id]', [
':id' => 'block-' . $block
->id(),
]);
$this
->assertSession()
->pageTextContains($block
->label());
}
}