/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage The search alias for the entity "Oro\TestBundle\Entity\UnknownEntity" not found. */ public function testGetEntityAliasesForUnknownEntity() { $this->provider->getEntityAliases(['Oro\\TestBundle\\Entity\\TestEntity', 'Oro\\TestBundle\\Entity\\UnknownEntity']); }