diff --git a/core/modules/tracker/lib/Drupal/tracker/Tests/Views/TrackerUserUidTest.php b/core/modules/tracker/lib/Drupal/tracker/Tests/Views/TrackerUserUidTest.php index d547bcd..46e73c9 100644 --- a/core/modules/tracker/lib/Drupal/tracker/Tests/Views/TrackerUserUidTest.php +++ b/core/modules/tracker/lib/Drupal/tracker/Tests/Views/TrackerUserUidTest.php @@ -46,18 +46,18 @@ public function testUserUid() { // We should have one result as the filter is set for the created user. $this->assertEqual(count($view->result), 1); + // Remove the filter now, so only the argument will affect the query. + $view->removeItem('default', 'filter', 'uid_touch_tracker'); // Test the incorrect argument UID. $view->destroy(); $view->initHandlers(); - unset($view->filter['uid_touch_tracker']); $this->executeView($view, array(rand())); $this->assertEqual(count($view->result), 0); // Test the correct argument UID. $view->destroy(); $view->initHandlers(); - unset($view->filter['uid_touch_tracker']); $this->executeView($view, array($this->user->id())); $this->assertEqual(count($view->result), 1); }