public function CallbackViewsTest::testDefaultView in Search Autocomplete 8
Same name and namespace in other branches
- 2.x src/Tests/Views/CallbackViewsTest.php \Drupal\search_autocomplete\Tests\Views\CallbackViewsTest::testDefaultView()
Basic checks : default views are inserted.
File
- src/
Tests/ Views/ CallbackViewsTest.php, line 65
Class
- CallbackViewsTest
- Test callback view configurations.
Namespace
Drupal\search_autocomplete\Tests\ViewsCode
public function testDefaultView() {
// Find the views in the view list page.
$this
->drupalGet("admin/structure/views");
// Nodes callback view.
$this
->assertRaw(t('Nodes Autocompletion Callbacks'));
$this
->assertRaw(t('autocompletion_callbacks_nodes'));
// Words callback view.
$this
->assertRaw(t('Words Autocompletion Callbacks'));
$this
->assertRaw(t('autocompletion_callbacks_words'));
}