Projet

Général

Profil

Révision c304a780

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/tests/object_cache.test
6 6
class CtoolsObjectCache extends DrupalWebTestCase {
7 7

  
8 8
  /**
9
   * {@inheritDoc}
9
   * {@inheritdoc}
10 10
   */
11 11
  public static function getInfo() {
12 12
    return array(
......
18 18
  }
19 19

  
20 20
  /**
21
   * {@inheritDoc}
21
   * {@inheritdoc}
22 22
   */
23
  function setUp(array $modules = array()) {
23
  public function setUp(array $modules = array()) {
24 24
    $modules[] = 'ctools';
25 25
    parent::setUp($modules);
26 26
  }
27 27

  
28
  /**
29
   *
30
   */
28

  
31 29
  public function testObjectStorage() {
32 30
    ctools_include('cache');
33 31

  
......
45 43
    // TODO Test object locking somehow.
46 44
    // Object locking/testing works on session_id but simpletest uses
47 45
    // $this->session_id so can't be tested ATM.
48

  
49 46
    ctools_object_cache_clear('testdata', 'one');
50 47
    $this->assertFalse(ctools_object_cache_get('testdata', 'one'), 'Object cache data successfully cleared');
51 48

  
52 49
    // TODO Test ctools_object_cache_clear_all somehow...
53 50
    // ctools_object_cache_clear_all requires session_id funtionality as well.
54 51
  }
52

  
55 53
}

Formats disponibles : Unified diff