private function ViewsXMLBackendBase::setUpViewsVariables in Views XML Backend 8
Provides variables used generally for creating and managing Views.
1 call to ViewsXMLBackendBase::setUpViewsVariables()
- ViewsXMLBackendBase::addMinimalXMLBackendView in src/
Tests/ ViewsXMLBackendBase.php - Adds and verifies that a new Views XML Backend View can be created.
File
- src/
Tests/ ViewsXMLBackendBase.php, line 153 - 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
private function setUpViewsVariables() {
$settings = $this
->setUpViewsXMLBackendVariables();
$this->viewsXMLBackendViewFieldId = $settings['field_id'];
$this->viewsXMLBackendViewFieldName = $settings['field_name'];
$this->viewsXMLBackendViewValue = $settings['value'];
$this->viewsXMLBackendFile = $settings['file'];
$this->viewsXMLBackendViewId = strtolower($this
->randomMachineName(16));
$this->viewsXMLBackendTitle = $this
->randomMachineName(16);
$this->viewsXMLBackendViewAddPath = '/admin/structure/views/add';
$this->viewsXMLBackendViewEditPath = "/admin/structure/views/view/{$this->viewsXMLBackendViewId}/edit/default";
$this->viewsXMLBackendViewQueryPath = "admin/structure/views/nojs/display/{$this->viewsXMLBackendViewId}/default/query";
//$path_to_test_file = drupal_get_path('module', "views_xml_backend");
}