Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/tests/user/views_user.test | ||
---|---|---|
9 | 9 |
* Tests basic user module integration into views. |
10 | 10 |
*/ |
11 | 11 |
class ViewsUserTestCase extends ViewsSqlTest { |
12 |
|
|
13 |
/** |
|
14 |
* |
|
15 |
*/ |
|
12 | 16 |
var $users = array(); |
17 |
|
|
18 |
/** |
|
19 |
* |
|
20 |
*/ |
|
13 | 21 |
var $nodes = array(); |
14 | 22 |
|
23 |
/** |
|
24 |
* |
|
25 |
*/ |
|
15 | 26 |
public static function getInfo() { |
16 | 27 |
return array( |
17 | 28 |
'name' => 'Tests basic user integration', |
... | ... | |
20 | 31 |
); |
21 | 32 |
} |
22 | 33 |
|
23 |
|
|
34 |
/** |
|
35 |
* |
|
36 |
*/ |
|
24 | 37 |
protected function setUp() { |
25 | 38 |
parent::setUp(); |
26 | 39 |
|
... | ... | |
31 | 44 |
} |
32 | 45 |
|
33 | 46 |
/** |
34 |
* Add a view which has no explicit relationship to the author and check the result.
|
|
47 |
* Add a view which has no explicit relationship to the author. |
|
35 | 48 |
* |
36 | 49 |
* @todo: Remove the following comment once the relationship is required. |
37 | 50 |
* One day a view will require the relationship so it should still work |
... | ... | |
51 | 64 |
$this->assertIdenticalResultset($view, $expected); |
52 | 65 |
} |
53 | 66 |
|
67 |
/** |
|
68 |
* |
|
69 |
*/ |
|
54 | 70 |
function test_view_user_relationship() { |
55 |
$view = new view; |
|
71 |
$view = new view();
|
|
56 | 72 |
$view->name = 'test_user_relationship'; |
57 | 73 |
$view->description = ''; |
58 | 74 |
$view->tag = 'default'; |
... | ... | |
140 | 156 |
|
141 | 157 |
return $view; |
142 | 158 |
} |
159 |
|
|
143 | 160 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules