deleteVariations() public method

If any of the delete operations fail Imbo will trigger an error
public deleteVariations ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The current event
Beispiel #1
0
 /**
  * @covers Imbo\EventListener\ImageVariations::deleteVariations
  */
 public function testDoesNotTriggerWarningsOnSuccessfulVariationsDelete()
 {
     $this->db->expects($this->once())->method('deleteImageVariations')->with($this->publicKey, $this->imageIdentifier);
     $this->storage->expects($this->once())->method('deleteImageVariations')->with($this->publicKey, $this->imageIdentifier);
     $this->listener->deleteVariations($this->event);
 }