mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Removing some of the loaded fixtures to show that tables are not needed in the process of model construction
This commit is contained in:
parent
a57e5e8c68
commit
e30904f8b4
1 changed files with 2 additions and 2 deletions
|
@ -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 @@ class ModelIntegrationTest extends BaseModelTest {
|
|||
* @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'));
|
||||
|
|
Loading…
Add table
Reference in a new issue