From e2184e25ac140d3b44709b7b070c1c4889122d45 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 25 May 2009 05:20:16 +0000 Subject: - 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. --- modules/simpletest/tests/common.test | 6 +++--- modules/simpletest/tests/form.test | 2 +- modules/simpletest/tests/graph.test | 2 +- modules/simpletest/tests/registry.test | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) (limited to 'modules/simpletest/tests') 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 = '