public function testHasEntityFixture() { $repository = $this->getMock('Oro\\Bundle\\ImportExportBundle\\TemplateFixture\\TemplateEntityRepositoryInterface'); $repository->expects($this->once())->method('getEntityClass')->will($this->returnValue('Test\\Entity1')); $fixture = $this->getMock('Oro\\Bundle\\ImportExportBundle\\TemplateFixture\\TemplateFixtureInterface'); $fixture->expects($this->once())->method('getEntityClass')->will($this->returnValue('Test\\Entity2')); $this->templateManager->addEntityRepository($repository); $this->templateManager->addEntityRepository($fixture); $this->assertFalse($this->templateManager->hasEntityFixture('unknown')); $this->assertFalse($this->templateManager->hasEntityFixture('Test\\Entity1')); $this->assertTrue($this->templateManager->hasEntityFixture('Test\\Entity2')); }