You are here

public function JsTestWebTestCase::testBootstrap in JS Callback Handler 7

Test bootstrapping.

File

tests/js_test.test, line 125
Testing for the bam template module

Class

JsTestWebTestCase
@file Testing for the bam template module

Code

public function testBootstrap() {
  variable_set('js_test_variable', 1);
  $out = $this
    ->drupalGet('nl/js/js_test/test_variable');
  $out = drupal_json_decode($out);
  $this
    ->assertEqual($out['filename'], 'js.php', 'Call was routed through js.php.');
  $this
    ->assertEqual($out['response'], 1, 'The variable should contain 1 if Drupal booted to the DRUPAL_BOOTSTRAP_VARIABLES phase.');
}