public function WidgetIntegrationTest::testLinksWidget in Facets 8
Tests links widget's basic functionality.
File
- tests/
src/ Functional/ WidgetIntegrationTest.php, line 56
Class
- WidgetIntegrationTest
- Tests the overall functionality of the Facets admin UI.
Namespace
Drupal\Tests\facets\FunctionalCode
public function testLinksWidget() {
$id = 'links_widget';
$this
->createFacet('>.Facet &* Links', $id);
$this
->drupalGet('admin/config/search/facets/' . $id . '/edit');
$this
->drupalPostForm(NULL, [
'widget' => 'links',
], 'Save');
$this
->drupalGet('search-api-test-fulltext');
$this
->assertFacetLabel('item');
$this
->assertFacetLabel('article');
$this
->clickLink('item');
$this
->checkFacetIsActive('item');
}