public function HandlerFilterUserNameTest::testUserNameApi in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/Tests/Views/HandlerFilterUserNameTest.php \Drupal\user\Tests\Views\HandlerFilterUserNameTest::testUserNameApi()
Tests just using the filter.
File
- core/
modules/ user/ src/ Tests/ Views/ HandlerFilterUserNameTest.php, line 78 - Contains \Drupal\user\Tests\Views\HandlerFilterUserNameTest.
Class
- HandlerFilterUserNameTest
- Tests the handler of the user: name filter.
Namespace
Drupal\user\Tests\ViewsCode
public function testUserNameApi() {
$view = Views::getView('test_user_name');
$view
->initHandlers();
$view->filter['uid']->value = array(
$this->accounts[0]
->id(),
);
$this
->executeView($view);
$this
->assertIdenticalResultset($view, array(
array(
'uid' => $this->accounts[0]
->id(),
),
), $this->columnMap);
}