public function testJobWantsPhabricatorAPI() { $this->apiFactoryMock->shouldReceive('getForProject')->once(); $this->job->handle(); }
/** * Notifies Phabricator there are new commits to pull. * * @param GitHubPayloadEvent $event The GitHub payload event */ public function notifyNewCommits(GitHubPayloadEvent $event) { $job = new NotifyNewCommitsToDiffusion($event->door, $event->payload->repository->clone_url); $job->handle(); }