Example #1
0
 protected function setUp()
 {
     $this->pluginRegistry = $this->prophesize(PluginRegistry::class);
     $this->listener = new BackupListener($this->pluginRegistry->reveal());
     $this->database = $this->prophesize(Database::class);
     $this->event = $this->prophesize(BackupEvent::class);
     $this->event->getDatabase()->willReturn($this->database->reveal());
 }