Projet

Général

Profil

Révision 6ff32cea

Ajouté par Florent Torregrosa il y a environ 9 ans

Update core to 7.36

Voir les différences:

drupal7/modules/simpletest/tests/bootstrap.test
153 153
    $this->drupalGet('', array(), array('If-Modified-Since: ' . $last_modified, 'If-None-Match: ' . $etag));
154 154
    $this->assertResponse(200, 'Conditional request returned 200 OK for authenticated user.');
155 155
    $this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), 'Absense of Page was not cached.');
156
    $this->assertFalse($this->drupalGetHeader('ETag'), 'ETag HTTP headers are not present for logged in users.');
157
    $this->assertFalse($this->drupalGetHeader('Last-Modified'), 'Last-Modified HTTP headers are not present for logged in users.');
156 158
  }
157 159

  
158 160
  /**
......
286 288

  
287 289
}
288 290

  
291
/**
292
 * Tests the auto-loading behavior of the code registry.
293
 */
294
class BootstrapAutoloadTestCase extends DrupalWebTestCase {
295

  
296
  public static function getInfo() {
297
    return array(
298
      'name' => 'Code registry',
299
      'description' => 'Test that the code registry functions correctly.',
300
      'group' => 'Bootstrap',
301
    );
302
  }
303

  
304
  function setUp() {
305
    parent::setUp('drupal_autoload_test');
306
  }
307

  
308
  /**
309
   * Tests that autoloader name matching is not case sensitive.
310
   */
311
  function testAutoloadCase() {
312
    // Test interface autoloader.
313
    $this->assertTrue(drupal_autoload_interface('drupalautoloadtestinterface'), 'drupal_autoload_interface() recognizes <em>DrupalAutoloadTestInterface</em> in lower case.');
314
    // Test class autoloader.
315
    $this->assertTrue(drupal_autoload_class('drupalautoloadtestclass'), 'drupal_autoload_class() recognizes <em>DrupalAutoloadTestClass</em> in lower case.');
316
  }
317

  
318
}
319

  
289 320
/**
290 321
 * Test hook_boot() and hook_exit().
291 322
 */

Formats disponibles : Unified diff