Adding tests to fixture test showing model imports.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7544 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mark_story 2008-09-01 23:04:59 +00:00
parent 58bbba0c4f
commit 55361320d4

View file

@ -152,8 +152,9 @@ class CakeTestFixtureTest extends CakeTestCase {
$Fixture =& new CakeTestFixtureImportFixture(); $Fixture =& new CakeTestFixtureImportFixture();
$Fixture->fields = $Fixture->records = null; $Fixture->fields = $Fixture->records = null;
$Fixture->import = array('FixtureImport'); $Fixture->import = array('model' => 'FixtureImportTestModel');
$Fixture->init(); $Fixture->init();
$this->assertEqual(array_keys($Fixture->fields), array('id', 'name', 'created'));
$Source->drop($this->db); $Source->drop($this->db);
} }