/** * {@inheritdoc} */ protected function assertPreConditions() { $this->assertInstanceOf('JLM\\ProductBundle\\Model\\ProductInterface', $this->entity); $this->assertNull($this->entity->getId()); }