From 99a2fa439c4d82c6e7621fe4adb73f376420b8d3 Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 17 Dec 2008 04:14:34 +0000 Subject: [PATCH] Fixing errors in Configure test. git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7928 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/configure.test.php | 5 +++-- .../sample/{sample.php => configure_test_vendor_sample.php} | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) rename cake/tests/test_app/vendors/sample/{sample.php => configure_test_vendor_sample.php} (96%) diff --git a/cake/tests/cases/libs/configure.test.php b/cake/tests/cases/libs/configure.test.php index 6f74e8381..a8cd784c5 100644 --- a/cake/tests/cases/libs/configure.test.php +++ b/cake/tests/cases/libs/configure.test.php @@ -68,6 +68,7 @@ class ConfigureTest extends CakeTestCase { if (file_exists(TMP . 'cache' . DS . 'persistent' . DS . 'test.php')) { unlink(TMP . 'cache' . DS . 'persistent' . DS . 'test.php'); } + Configure::write('debug', 2); parent::tearDown(); } /** @@ -501,9 +502,9 @@ class AppImportTest extends UnitTestCase { $this->assertTrue($result); $this->assertTrue(class_exists('SamplePluginClassTestName')); - $result = App::import('Vendor', 'Sample'); + $result = App::import('Vendor', 'ConfigureTestVendorSample'); $this->assertTrue($result); - $this->assertTrue(class_exists('SampleClassTestName')); + $this->assertTrue(class_exists('ConfigureTestVendorSample')); ob_start(); $result = App::import('Vendor', 'SomeName', array('file' => 'some.name.php')); diff --git a/cake/tests/test_app/vendors/sample/sample.php b/cake/tests/test_app/vendors/sample/configure_test_vendor_sample.php similarity index 96% rename from cake/tests/test_app/vendors/sample/sample.php rename to cake/tests/test_app/vendors/sample/configure_test_vendor_sample.php index beb83a0fb..2fed84ac6 100644 --- a/cake/tests/test_app/vendors/sample/sample.php +++ b/cake/tests/test_app/vendors/sample/configure_test_vendor_sample.php @@ -24,6 +24,6 @@ * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ -class SampleClassTestName { +class ConfigureTestVendorSample { } ?> \ No newline at end of file