diff --git a/core/modules/comment/src/Plugin/views/field/Username.php b/core/modules/comment/src/Plugin/views/field/Username.php index 7568a81..c82a301 100644 --- a/core/modules/comment/src/Plugin/views/field/Username.php +++ b/core/modules/comment/src/Plugin/views/field/Username.php @@ -43,11 +43,6 @@ protected function defineOptions() { return $options; } - public function query() { - parent::query(); - } - - /** * {@inheritdoc} */ diff --git a/core/modules/user/src/Tests/Views/HandlerFieldUserNameTest.php b/core/modules/user/src/Tests/Views/HandlerFieldUserNameTest.php index 3c0ef73..8312b11 100644 --- a/core/modules/user/src/Tests/Views/HandlerFieldUserNameTest.php +++ b/core/modules/user/src/Tests/Views/HandlerFieldUserNameTest.php @@ -37,7 +37,6 @@ public function testUserName() { $username = $view->result[0]->users_field_data_name = $this->randomMachineName(); $view->result[0]->uid = 1; $render = $view->field['name']->advancedRender($view->result[0]); - debug($render); $this->assertTrue(strpos($render, $username) !== FALSE, 'If link to user is checked the username should be part of the output.'); $this->assertTrue(strpos($render, 'user/1') !== FALSE, 'If link to user is checked the link to the user should appear as well.'); @@ -56,7 +55,6 @@ public function testUserName() { $view->field['name']->options['overwrite_anonymous'] = TRUE; $anon_name = $view->field['name']->options['anonymous_text'] = $this->randomMachineName(); $render = $view->field['name']->advancedRender($view->result[0]); - debug($render); $this->assertIdentical($render, $anon_name , 'For user0 it should use the configured anonymous text if overwrite_anonymous is checked.'); $view->result[0]->uid = 1; $render = $view->field['name']->advancedRender($view->result[0]); diff --git a/core/modules/views/src/ViewsData.php b/core/modules/views/src/ViewsData.php index 9155df6..81469e7 100644 --- a/core/modules/views/src/ViewsData.php +++ b/core/modules/views/src/ViewsData.php @@ -293,9 +293,6 @@ public function fetchBaseTables() { foreach ($this->get() as $table => $info) { if (!empty($info['table']['base'])) { - if (!isset($info['table']['base']['title'])) { - debug($table); - } $tables[$table] = array( 'title' => $info['table']['base']['title'], 'help' => !empty($info['table']['base']['help']) ? $info['table']['base']['help'] : '', diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_groupwise_term_ui.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_groupwise_term_ui.yml index 09ca412..55747a7 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_groupwise_term_ui.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_groupwise_term_ui.yml @@ -35,7 +35,7 @@ display: id: nid relationship: tid_representative table: node_field_data - plugin_id: node_field_data + plugin_id: node entity_type: node entity_field: nid pager: diff --git a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php index 827eb35..e943f8a 100644 --- a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php +++ b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php @@ -791,8 +791,6 @@ protected function assertEntityReferenceField($data) { $this->assertEquals('numeric', $data['filter']['id']); $this->assertEquals('numeric', $data['argument']['id']); $this->assertEquals('standard', $data['sort']['id']); - - $a = 123; } /** diff --git a/core/modules/views_ui/src/Tests/ViewEditTest.php b/core/modules/views_ui/src/Tests/ViewEditTest.php index 61030bd..61342c4 100644 --- a/core/modules/views_ui/src/Tests/ViewEditTest.php +++ b/core/modules/views_ui/src/Tests/ViewEditTest.php @@ -29,7 +29,7 @@ class ViewEditTest extends UITestBase { /** * Tests the delete link on a views UI. */ - public function testsDeleteLink() { + public function testDeleteLink() { $this->drupalGet('admin/structure/views/view/test_view'); $this->assertLink(t('Delete view'), 0, 'Ensure that the view delete link appears'); @@ -48,7 +48,7 @@ public function testsDeleteLink() { /** * Tests the machine name form. */ - public function testsMachineNameOption() { + public function testMachineNameOption() { $this->drupalGet('admin/structure/views/view/test_view'); // Add a new attachment display. $this->drupalPostForm(NULL, array(), 'Add Attachment'); @@ -142,7 +142,7 @@ public function testEditFormLanguageOptions() { /** * Tests Representative Node for a Taxonomy Term. */ - public function testsRelationRepresentativeNode() { + public function testRelationRepresentativeNode() { // Populate and submit the form. $edit["name[taxonomy_term_field_data.tid_representative]"] = TRUE; $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_groupwise_term_ui/default/relationship', $edit, 'Add and configure relationships');