mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
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:
parent
58bbba0c4f
commit
55361320d4
1 changed files with 2 additions and 1 deletions
|
@ -152,8 +152,9 @@ class CakeTestFixtureTest extends CakeTestCase {
|
|||
|
||||
$Fixture =& new CakeTestFixtureImportFixture();
|
||||
$Fixture->fields = $Fixture->records = null;
|
||||
$Fixture->import = array('FixtureImport');
|
||||
$Fixture->import = array('model' => 'FixtureImportTestModel');
|
||||
$Fixture->init();
|
||||
$this->assertEqual(array_keys($Fixture->fields), array('id', 'name', 'created'));
|
||||
|
||||
$Source->drop($this->db);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue