diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-05-25 05:20:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-05-25 05:20:16 +0000 |
commit | e2184e25ac140d3b44709b7b070c1c4889122d45 (patch) | |
tree | b498a820eb874a70481ae408994be6d0cb1c10ea /modules/simpletest/tests/registry.test | |
parent | a36d0d49c11329af1d040979d9c3e3ed5a92e1ca (diff) | |
download | brdo-e2184e25ac140d3b44709b7b070c1c4889122d45.tar.gz brdo-e2184e25ac140d3b44709b7b070c1c4889122d45.tar.bz2 |
- Patch #464714 by chx, DamZ: speed up the tests by bringing unit tests backt to live. Unit tests bootstrap faster and have the potential to speed up testing. We'll need help converting tests where possible.
Diffstat (limited to 'modules/simpletest/tests/registry.test')
-rw-r--r-- | modules/simpletest/tests/registry.test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/simpletest/tests/registry.test b/modules/simpletest/tests/registry.test index f8bebf905..0ef763920 100644 --- a/modules/simpletest/tests/registry.test +++ b/modules/simpletest/tests/registry.test @@ -135,7 +135,7 @@ CONTENTS; } -class RegistrySkipBodyTestCase extends DrupalWebTestCase { +class RegistrySkipBodyTestCase extends DrupalUnitTestCase { public static function getInfo() { return array( 'name' => t('Skip function body test'), @@ -148,6 +148,7 @@ class RegistrySkipBodyTestCase extends DrupalWebTestCase { // This string contains all three kinds of opening braces. $function = '<?php function foo () { $x = "{$y}"; $x = "${y}"; }'; $tokens = token_get_all($function); + require_once DRUPAL_ROOT . '/includes/registry.inc'; _registry_skip_body($tokens); // Consume the last } each($tokens); |