public function testAssertDefaultStrategyForCollectionsIsAllowRemove() { $this->configureObjectManagerForOneToManyEntity(); $this->assertInstanceOf('DoctrineModule\\Stdlib\\Hydrator\\Strategy\\AllowRemoveByValue', $this->hydratorByValue->getStrategy('entities')); $this->assertEquals('entities', $this->hydratorByValue->getStrategy('entities')->getCollectionName()); $this->assertInstanceOf('DoctrineModule\\Stdlib\\Hydrator\\Strategy\\AllowRemoveByReference', $this->hydratorByReference->getStrategy('entities')); $this->assertEquals('entities', $this->hydratorByReference->getStrategy('entities')->getCollectionName()); }