Skip to content

Commit

Permalink
Merge pull request #6526 from laboro/fix/ExtendClassMetadataFactoryTest
Browse files Browse the repository at this point in the history
Fix Oro\Bundle\EntityExtendBundle\Tests\Unit\Mapping\ExtendClassMetadataFactoryTest
  • Loading branch information
yurio committed Jan 15, 2016
2 parents 565c10d + c184566 commit 4688506
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,17 @@ public function testSetMetadataFor()
);

$cacheSalt = '$CLASSMETADATA';
$this->assertAttributeSame(
[
'[Oro\Bundle\UserBundle\Entity\User'.$cacheSalt .'][1]' => $metadata
],
'data',
$this->cmf->getCacheDriver()
$this->assertTrue(
$this->cmf->getCacheDriver()->contains('Oro\Bundle\UserBundle\Entity\User' . $cacheSalt)
);
}

public function testSetMetadataForWithoutCacheDriver()
{
$metadata = new ClassMetadata('Oro\Bundle\UserBundle\Entity\User');
$this->cmf->setMetadataFor(
'Oro\Bundle\UserBundle\Entity\User',
$metadata
);
}
}

0 comments on commit 4688506

Please sign in to comment.