1
0
mirror of synced 2024-12-05 03:06:05 +03:00

#1001 DDC-3005 - coverage annotations, minor CS fixes

This commit is contained in:
Marco Pivetta 2015-01-12 23:50:16 +01:00
parent 0c8a31bf2b
commit 22e12e0043
3 changed files with 9 additions and 0 deletions

View File

@ -152,6 +152,7 @@ class DefaultEntityHydrator implements EntityHydrator
}
$result = $this->uow->createEntity($entry->class, $data, $hints);
$this->uow->hydrationComplete();
return $result;

View File

@ -148,6 +148,7 @@ class DefaultQueryCache implements QueryCache
if ($this->cacheLogger !== null) {
$this->cacheLogger->entityCacheMiss($assocRegion->getName(), $assocKey);
}
$this->uow->hydrationComplete();
return null;
@ -176,6 +177,7 @@ class DefaultQueryCache implements QueryCache
if ($this->cacheLogger !== null) {
$this->cacheLogger->entityCacheMiss($assocRegion->getName(), $assocKey);
}
$this->uow->hydrationComplete();
return null;

View File

@ -204,6 +204,9 @@ class PostLoadEventTest extends \Doctrine\Tests\OrmFunctionalTestCase
$phonenumbersCol->first();
}
/**
* @group DDC-3005
*/
public function testAssociationsArePopulatedWhenEventIsFired()
{
$checkerListener = new PostLoadListenerCheckAssociationsArePopulated();
@ -218,6 +221,9 @@ class PostLoadEventTest extends \Doctrine\Tests\OrmFunctionalTestCase
$this->assertTrue($checkerListener->populated, 'Association of email is not populated in postLoad event');
}
/**
* @group DDC-3005
*/
public function testEventRaisedCorrectTimesWhenOtherEntityLoadedInEventHandler()
{
$eventManager = $this->_em->getEventManager();