Révision 7e72b748
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/ctools/tests/object_cache.test | ||
---|---|---|
1 | 1 |
<?php |
2 |
/** |
|
3 |
* @file |
|
4 |
* Tests for different parts of the ctools object caching system. |
|
5 |
*/ |
|
6 | 2 |
|
7 | 3 |
/** |
8 | 4 |
* Test object cache storage. |
9 | 5 |
*/ |
10 | 6 |
class CtoolsObjectCache extends DrupalWebTestCase { |
7 |
|
|
8 |
/** |
|
9 |
* {@inheritDoc} |
|
10 |
*/ |
|
11 | 11 |
public static function getInfo() { |
12 | 12 |
return array( |
13 |
'name' => 'Ctools object cache storage',
|
|
13 |
'name' => 'Object cache storage (UI tests)',
|
|
14 | 14 |
'description' => 'Verify that objects are written, readable and lockable.', |
15 | 15 |
'group' => 'ctools', |
16 |
'dependencies' => array('ctools'), |
|
16 | 17 |
); |
17 | 18 |
} |
18 | 19 |
|
19 |
public function setUp() { |
|
20 |
// Additionally enable ctools module. |
|
21 |
parent::setUp('ctools'); |
|
20 |
/** |
|
21 |
* {@inheritDoc} |
|
22 |
*/ |
|
23 |
function setUp(array $modules = array()) { |
|
24 |
$modules[] = 'ctools'; |
|
25 |
parent::setUp($modules); |
|
22 | 26 |
} |
23 | 27 |
|
28 |
/** |
|
29 |
* |
|
30 |
*/ |
|
24 | 31 |
public function testObjectStorage() { |
32 |
ctools_include('cache'); |
|
33 |
|
|
25 | 34 |
$account1 = $this->drupalCreateUser(array()); |
26 | 35 |
$this->drupalLogin($account1); |
27 | 36 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules