Skip to content
Permalink
Browse files

Removing some of the loaded fixtures to show that tables are not need…

…ed in the process of model construction
  • Loading branch information...
lorenzo committed Jul 16, 2010
1 parent a57e5e8 commit e30904f8b44b3dc9f5a36c79259f6e80275dac99
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/tests/cases/libs/model/model_integration.test.php
@@ -57,7 +57,7 @@ class ModelIntegrationTest extends BaseModelTest {
* @return void
*/
public function testAssociationLazyLoading() {
$this->loadFixtures('ArticleFeatured', 'User', 'Category', 'Comment', 'ArticleFeaturedsTags', 'Tag');
$this->loadFixtures('ArticleFeaturedsTags');
$Article = new ArticleFeatured();
$this->assertTrue(isset($Article->belongsTo['User']));
$this->assertFalse(property_exists($Article, 'User'));
@@ -93,7 +93,7 @@ public function testAssociationLazyLoading() {
* @return void
*/
public function testAssociationLazyLoadWithHABTM() {
$this->loadFixtures('Article', 'UuidTag', 'Fruit', 'FruitsUuidTag', 'ArticlesTag');
$this->loadFixtures('FruitsUuidTag', 'ArticlesTag');
$Article = new ArticleB();
$this->assertTrue(isset($Article->hasAndBelongsToMany['TagB']));
$this->assertFalse(property_exists($Article, 'TagB'));

0 comments on commit e30904f

Please sign in to comment.
You can’t perform that action at this time.