From b6eeaa6877aca47bf9f9e469a7a8432cdd618c69 Mon Sep 17 00:00:00 2001 From: meus Date: Sun, 2 Sep 2007 16:26:28 +0000 Subject: [PATCH] moved export test files back into models and modified path in testcase --- {tests/Export/_files2 => models/export}/Cms_Cateogry.php | 0 .../Export/_files2 => models/export}/Cms_CateogryLanguages.php | 0 tests/Export/RecordTestCase.php | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename {tests/Export/_files2 => models/export}/Cms_Cateogry.php (100%) rename {tests/Export/_files2 => models/export}/Cms_CateogryLanguages.php (100%) diff --git a/tests/Export/_files2/Cms_Cateogry.php b/models/export/Cms_Cateogry.php similarity index 100% rename from tests/Export/_files2/Cms_Cateogry.php rename to models/export/Cms_Cateogry.php diff --git a/tests/Export/_files2/Cms_CateogryLanguages.php b/models/export/Cms_CateogryLanguages.php similarity index 100% rename from tests/Export/_files2/Cms_CateogryLanguages.php rename to models/export/Cms_CateogryLanguages.php diff --git a/tests/Export/RecordTestCase.php b/tests/Export/RecordTestCase.php index a78fc7ba0..ee5d0abc6 100644 --- a/tests/Export/RecordTestCase.php +++ b/tests/Export/RecordTestCase.php @@ -88,7 +88,7 @@ class Doctrine_Export_Record_TestCase extends Doctrine_UnitTestCase public function testExportModelFromDirectory() { - Doctrine::exportSchema(dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files2'); + Doctrine::exportSchema(dirname(__FILE__) . DIRECTORY_SEPARATOR .'..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'models' . DIRECTORY_SEPARATOR . 'export'); $this->assertEqual($this->adapter->pop(), 'COMMIT'); $this->assertEqual($this->adapter->pop(), 'ALTER TABLE cms__category_languages ADD CONSTRAINT FOREIGN KEY (category_id) REFERENCES cms__category(id) ON DELETE CASCADE');