diff --git a/lib/Drupal/views/Tests/QueryGroupByTest.php b/lib/Drupal/views/Tests/QueryGroupByTest.php index a4c2e78..107ccbd 100644 --- a/lib/Drupal/views/Tests/QueryGroupByTest.php +++ b/lib/Drupal/views/Tests/QueryGroupByTest.php @@ -44,7 +44,7 @@ public function testAggregateCount() { $this->drupalCreateNode($node_2); $view = $this->viewsAggregateCountView(); - $output = $view->executeDisplay(); + $this->executeView($view); $this->assertEqual(count($view->result), 2, 'Make sure the count of items is right.'); @@ -91,7 +91,7 @@ function GroupByTestHelper($group_by, $values) { $this->drupalCreateNode($node_2); $view = $this->viewsGroupByViewHelper($group_by); - $output = $view->executeDisplay(); + $this->executeView($view); $this->assertEqual(count($view->result), 2, 'Make sure the count of items is right.'); // Group by nodetype to identify the right count. @@ -144,7 +144,7 @@ public function testGroupByCountOnlyFilters() { } $view = $this->viewsGroupByCountViewOnlyFilters(); - $output = $view->executeDisplay(); + $this->executeView($view); $this->assertTrue(strpos($view->build_info['query'], 'GROUP BY'), t('Make sure that GROUP BY is in the query')); $this->assertTrue(strpos($view->build_info['query'], 'HAVING'), t('Make sure that HAVING is in the query')); diff --git a/lib/Drupal/views/Tests/User/UserTest.php b/lib/Drupal/views/Tests/User/UserTest.php index 3afc0ee..ff51c81 100644 --- a/lib/Drupal/views/Tests/User/UserTest.php +++ b/lib/Drupal/views/Tests/User/UserTest.php @@ -52,7 +52,7 @@ protected function setUp() { public function testRelationship() { $view = $this->test_view_user_relationship(); - $view->executeDisplay(); + $this->executeView($view); $expected = array(); for ($i = 0; $i <= 1; $i++) { $expected[$i] = array( diff --git a/tests/views_test_config/config/views.view.test_access_dynamic.yml b/tests/views_test_config/config/views.view.test_access_dynamic.yml new file mode 100644 index 0000000..87754f6 --- /dev/null +++ b/tests/views_test_config/config/views.view.test_access_dynamic.yml @@ -0,0 +1,32 @@ +api_version: '3.0' +base_table: node +core: '8' +description: '' +disabled: '0' +display: + default: + display_options: + access: + type: test_dynamic + cache: + type: none + exposed_form: + type: basic + pager: + type: full + row_plugin: fields + style_plugin: default + display_plugin: default + display_title: Master + id: default + position: '0' + page_1: + display_options: + path: test_access_dynamic + display_plugin: page + display_title: Page + id: page_1 + position: '0' +human_name: '' +name: test_access_dynamic +tag: ''