/** * @param FeatureModel $feature * @depends testUpdate */ public function testDelete(FeatureModel $feature) { $event = new FeatureDeleteEvent($feature->getId()); $event->setDispatcher($this->dispatcher); $action = new Feature(); $action->delete($event); $deletedFeature = $event->getFeature(); $this->assertInstanceOf('Thelia\\Model\\Feature', $deletedFeature); $this->assertTrue($deletedFeature->isDeleted()); }