protected function ViewsXMLBackendBase::addXMLBackendView in Views XML Backend 8
Adds and verifies the Views XML Backend option during new Views creation.
1 call to ViewsXMLBackendBase::addXMLBackendView()
- ViewsXMLBackendAddTest::testAddViewViewsXMLBackend in src/
Tests/ ViewsXMLBackendAddTest.php - Tests Views XML Backend option appears in new View admin page.
File
- src/
Tests/ ViewsXMLBackendBase.php, line 170 - Contains \Drupal\views_xml_backend\Tests\ViewsXMLBackendBase.
Class
- ViewsXMLBackendBase
- Provides supporting functions for testing the Views XML Backend module.
Namespace
Drupal\views_xml_backend\TestsCode
protected function addXMLBackendView() {
$this
->drupalGet('admin/structure/views/add');
$settings = $this
->setUpViewsXMLBackendVariables();
$msg = "Select option '{$settings['value']}' was found in '{$settings['field_id']}'";
$this
->assertOption($settings['field_id'], $settings['value'], $msg);
}