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/context.test
1 1
<?php
2 2

  
3 3
/**
4
 * @file
4 5
 * Test the keyword substitution functionality.
5 6
 */
7

  
6 8
class CtoolsContextIDTestCase extends DrupalWebTestCase {
7 9

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

  
20 22
  /**
21
   * {@inheritDoc}
23
   * {@inheritdoc}
22 24
   */
23 25
  protected function setUp(array $modules = array()) {
24 26
    $modules[] = 'ctools';
......
160 162
    $expected = 2;
161 163
    $this->assertEqual($value, $expected, 'Foo\'s objects have next id ' . $expected);
162 164

  
163
    // Another expected case: there are multiple numeric IDs
165
    // Another expected case: there are multiple numeric IDs.
164 166
    $value = ctools_context_next_id($test_objects, 'bar');
165 167
    $expected = 100;
166 168
    $this->assertEqual($value, $expected, 'Bar\'s objects have next id ' . $expected);
......
175 177
class CtoolsContextKeywordsSubstitutionTestCase extends DrupalWebTestCase {
176 178

  
177 179
  /**
178
   * {@inheritDoc}
180
   * {@inheritdoc}
179 181
   */
180 182
  public static function getInfo() {
181 183
    return array(
......
187 189
  }
188 190

  
189 191
  /**
190
   * {@inheritDoc}
192
   * {@inheritdoc}
191 193
   */
192 194
  protected function setUp(array $modules = array()) {
193 195
    $modules[] = 'ctools';
......
337 339
class CtoolsContextUnitTestCase extends DrupalUnitTestCase {
338 340

  
339 341
  /**
340
   * {@inheritDoc}
342
   * {@inheritdoc}
341 343
   */
342 344
  public static function getInfo() {
343 345
    return array(
......
349 351
  }
350 352

  
351 353
  /**
352
   * {@inheritDoc}
354
   * {@inheritdoc}
353 355
   */
354 356
  protected function setUp() {
355 357
    parent::setUp();

Formats disponibles : Unified diff