ViewExecutableTest::$user

Same name and namespace in other branches
  1. 8.9.x core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::user
  2. 10 core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::user
  3. 11.x core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::user

The mocked user.

Type: \Drupal\Core\Session\AccountInterface|\PHPUnit\Framework\MockObject\MockObject

File

core/modules/views/tests/src/Unit/ViewExecutableTest.php, line 77

Class

ViewExecutableTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21views%21src%21ViewExecutable.php/class/ViewExecutable/9" title="Represents a view as a whole." class="local">\Drupal\views\ViewExecutable</a> @group views

Namespace

Drupal\Tests\views\Unit

Code

protected $user;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.