/** * {@inheritdoc} */ protected function assertPreConditions() { $this->assertInstanceOf('JLM\\FeeBundle\\Model\\FeeInterface', $this->entity); $this->assertNull($this->entity->getId()); $this->assertSame('semestrielle', $this->entity->getFrequenceString()); }