Permalink
Browse files

Adding missing models to Model test case.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7960 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information...
nateabele committed Dec 25, 2008
1 parent ad208ff commit 963da7411bf9bc9c5c66b0afaa82011cb1b99148
Showing with 15 additions and 1 deletion.
  1. +10 −0 cake/tests/cases/libs/model/models.php
  2. +5 −1 cake/tests/fixtures/fruit_fixture.php
@@ -2889,4 +2889,14 @@ class TagB extends CakeTestModel {
);
}
+class Fruit extends CakeTestModel {
+ var $name = 'Fruit';
+ var $hasAndBelongsToMany = array('UuidTag' => array('with' => 'FruitsUuidTag'));
+}
+
+class UuidTag extends CakeTestModel {
+ var $name = 'UuidTag';
+ var $hasAndBelongsToMany = array('Fruit' => array('with' => 'FruitsUuidTag'));
+}
+
?>
@@ -58,7 +58,11 @@ class FruitFixture extends CakeTestFixture {
* @access public
*/
var $records = array(
- array('id' => '481fc6d0-b920-43e0-a40d-6d1740cf8569', 'name' => 'Orange', 'color' => 'orange', 'shape' => 'Spherical', 'taste' => 'Tangy & Sweet')
+ array(
+ 'id' => '481fc6d0-b920-43e0-a40d-6d1740cf8569', 'name' => 'Orange',
+ 'color' => 'orange', 'shape' => 'Spherical', 'taste' => 'Tangy & Sweet'
+ )
);
}
+
?>

0 comments on commit 963da74

Please sign in to comment.