public function testPublishAsync() { $this->_watcherService->create($this->_watcher); $this->_watcherService->publishEventAsync($this->_event); sleep(1); $this->_watcher->reload(); $this->assertEquals(WatcherModel::STATUS_FINISHED, $this->_watcher->status); }
public function testCreateWatcher() { $watcher = $this->_createWatcher(); $this->_service->create($watcher); $this->assertNotNull($watcher->id); }
public function createWatcher(WatcherModel $model) { return parent::create($model); }