/** * @expectedException \Dunglas\ApiBundle\Exception\RuntimeException * @expectedExceptionMessage The class "Dunglas\ApiBundle\Tests\Fixtures\DummyEntity" has no identifier. */ public function testIdentifierNameNotSet() { $this->classMetadata->getIdentifierName(); }