/**
  * @test
  */
 public function eventShouldInitializeCorrectly()
 {
     $resource = $this->getMockedResource();
     $event = new ResourceEvent($resource);
     $resource2 = $event->getResource();
     $this->assertSame($resource, $resource2);
     $resource3 = $event->getIdentifiable();
     $this->assertSame($resource, $resource3);
 }
Beispiel #2
0
 /**
  * @param ResourceEvent $event
  */
 public function onResourceDelete(ResourceEvent $event)
 {
     $this->deleteProvidedVersions($event->getResource());
 }