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 | |
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')
-rw-r--r-- | modules/simpletest/tests/common.test | 6 | ||||
-rw-r--r-- | modules/simpletest/tests/form.test | 2 | ||||
-rw-r--r-- | modules/simpletest/tests/graph.test | 2 | ||||
-rw-r--r-- | modules/simpletest/tests/registry.test | 3 |
4 files changed, 7 insertions, 6 deletions
diff --git a/modules/simpletest/tests/common.test b/modules/simpletest/tests/common.test index 3af7786e2..284313725 100644 --- a/modules/simpletest/tests/common.test +++ b/modules/simpletest/tests/common.test @@ -4,7 +4,7 @@ /** * Tests for the l() function. */ -class CommonLUnitTest extends DrupalWebTestCase { +class CommonLUnitTest extends DrupalUnitTestCase { public static function getInfo() { return array( @@ -26,7 +26,7 @@ class CommonLUnitTest extends DrupalWebTestCase { } } -class CommonSizeTestCase extends DrupalWebTestCase { +class CommonSizeTestCase extends DrupalUnitTestCase { protected $exact_test_cases; protected $rounded_test_cases; @@ -631,7 +631,7 @@ class DrupalRenderUnitTestCase extends DrupalWebTestCase { /** * Test for valid_url(). */ -class ValidUrlTestCase extends DrupalWebTestCase { +class ValidUrlTestCase extends DrupalUnitTestCase { public static function getInfo() { return array( 'name' => t('Valid Url'), diff --git a/modules/simpletest/tests/form.test b/modules/simpletest/tests/form.test index c06a452d9..991186ba3 100644 --- a/modules/simpletest/tests/form.test +++ b/modules/simpletest/tests/form.test @@ -77,7 +77,7 @@ class FormsTestCase extends DrupalWebTestCase { /** * Test form type functions for expected behavior. */ -class FormsTestTypeCase extends DrupalWebTestCase { +class FormsTestTypeCase extends DrupalUnitTestCase { public static function getInfo() { return array( 'name' => t('Form type-specific tests'), diff --git a/modules/simpletest/tests/graph.test b/modules/simpletest/tests/graph.test index a6dac87ef..a5ed9314b 100644 --- a/modules/simpletest/tests/graph.test +++ b/modules/simpletest/tests/graph.test @@ -9,7 +9,7 @@ /** * Unit tests for the graph handling features. */ -class GraphUnitTest extends DrupalWebTestCase { +class GraphUnitTest extends DrupalUnitTestCase { public static function getInfo() { return array( 'name' => t('Graph'), 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); |