コード例 #1
0
ファイル: FeatureTest.php プロジェクト: NandoKstroNet/thelia
 /**
  * @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());
 }