fix ModelIntegrationTest part 1

This commit is contained in:
AD7six 2011-05-17 21:48:16 +02:00
parent ce774c0083
commit 6e29bb4d94

View file

@ -93,6 +93,7 @@ class ModelIntegrationTest extends BaseModelTest {
*/ */
public function testAssociationLazyLoadWithHABTM() { public function testAssociationLazyLoadWithHABTM() {
$this->loadFixtures('FruitsUuidTag', 'ArticlesTag'); $this->loadFixtures('FruitsUuidTag', 'ArticlesTag');
$this->db->cacheSources = false;
$Article = new ArticleB(); $Article = new ArticleB();
$this->assertTrue(isset($Article->hasAndBelongsToMany['TagB'])); $this->assertTrue(isset($Article->hasAndBelongsToMany['TagB']));
$this->assertFalse(property_exists($Article, 'TagB')); $this->assertFalse(property_exists($Article, 'TagB'));