public function BlockTest::testDefaultValue in Search API Pages 8
Tests that only the initiating search block has the keys as default value.
File
- tests/
src/ Functional/ BlockTest.php, line 114
Class
- BlockTest
- Provides web tests for Search API Pages.
Namespace
Drupal\Tests\search_api_page\FunctionalCode
public function testDefaultValue() {
$form = $this
->getSession()
->getPage()
->find('css', '.search-form form');
$form
->fillField('Search', 'Owls');
$form
->submit();
$this
->assertSession()
->fieldValueEquals("edit-keys", 'Owls');
$this
->assertSession()
->fieldValueEquals('edit-keys--2', '');
}