UserTest.php 910 Bytes
Newer Older
merlinofchaos's avatar
merlinofchaos committed
1 2 3 4
<?php

/**
 * @file
5
 * Definition of Drupal\views\Tests\User\UserTest.
merlinofchaos's avatar
merlinofchaos committed
6 7
 */

8 9
namespace Drupal\views\Tests\User;

merlinofchaos's avatar
merlinofchaos committed
10 11 12
/**
 * Tests basic user module integration into views.
 */
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
class UserTest extends UserTestBase {

  /**
   * Users to use during this test.
   *
   * @var array
   */
  protected $users = array();

  /**
   * Nodes to use during this test.
   *
   * @var array
   */
  protected $nodes = array();
merlinofchaos's avatar
merlinofchaos committed
28 29 30

  public static function getInfo() {
    return array(
31 32
      'name' => 'User: Basic integration',
      'description' => 'Tests the integration of user.module.',
merlinofchaos's avatar
merlinofchaos committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46
      'group' => 'Views Modules',
    );
  }

  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));
  }

}