/** * @param FeatureAvModel $featureAv * @depends testUpdate */ public function testDelete(FeatureAvModel $featureAv) { $event = new FeatureAvDeleteEvent($featureAv->getId()); $event->setDispatcher($this->dispatcher); $action = new FeatureAv(); $action->delete($event); $deletedFeatureAv = $event->getFeatureAv(); $this->assertInstanceOf('Thelia\\Model\\FeatureAv', $deletedFeatureAv); $this->assertTrue($deletedFeatureAv->isDeleted()); }