UserTestBase.php in Views (for Drupal 7) 8.3
Definition of Drupal\views\Tests\User\UserTestBase.
Namespace
Drupal\views\Tests\UserFile
lib/Drupal/views/Tests/User/UserTestBase.phpView source
<?php
/**
* @file
* Definition of Drupal\views\Tests\User\UserTestBase.
*/
namespace Drupal\views\Tests\User;
use Drupal\views\Tests\ViewTestBase;
/**
* @todo.
*/
abstract class UserTestBase extends ViewTestBase {
/**
* Users to use during this test.
*
* @var array
*/
protected $users = array();
/**
* Nodes to use during this test.
*
* @var array
*/
protected $nodes = array();
protected function setUp() {
parent::setUp();
$this->users[] = $this
->drupalCreateUser();
$this->users[] = user_load(1);
$this->nodes[] = $this
->drupalCreateNode(array(
'uid' => $this->users[0]->uid,
));
$this->nodes[] = $this
->drupalCreateNode(array(
'uid' => 1,
));
}
}
Classes
Name | Description |
---|---|
UserTestBase | @todo. |