diff --git a/core/modules/user/lib/Drupal/user/Tests/Views/HandlerFilterUserNameTest.php b/core/modules/user/lib/Drupal/user/Tests/Views/HandlerFilterUserNameTest.php index 91c45ef..8f504ee 100644 --- a/core/modules/user/lib/Drupal/user/Tests/Views/HandlerFilterUserNameTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/Views/HandlerFilterUserNameTest.php @@ -84,20 +84,17 @@ protected function setUp() { public function testUserNameApi() { $view = views_get_view('test_user_name'); - // Test all of the accounts with a single entry. $view->initHandlers(); - foreach ($this->accounts as $account) { - $view->filter['uid']->value = array($account->id()); - } + $view->filter['uid']->value = array($this->accounts[0]->id()); $this->executeView($view); - $this->assertIdenticalResultset($view, array(array('uid' => $account->id())), $this->columnMap); + $this->assertIdenticalResultset($view, array(array('uid' => $this->accounts[0]->id())), $this->columnMap); } /** * Tests using the user interface. */ - public function testAdminUserInterface() { + public function ptestAdminUserInterface() { $admin_user = $this->drupalCreateUser(array('administer views', 'administer site configuration')); $this->drupalLogin($admin_user); @@ -140,7 +137,7 @@ public function testAdminUserInterface() { /** * Tests exposed filters. */ - public function testExposedFilter() { + public function ptestExposedFilter() { $path = 'test_user_name'; $options = array(); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php index 537e6c8..5ff83db 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php @@ -384,6 +384,7 @@ protected function opSimple() { // We use array_values() because the checkboxes keep keys and that can cause // array addition problems. + debug($this->value); $this->query->addWhere($this->options['group'], "$this->tableAlias.$this->realField", array_values($this->value), $this->operator); }