コード例 #1
0
 public function testJobWantsPhabricatorAPI()
 {
     $this->apiFactoryMock->shouldReceive('getForProject')->once();
     $this->job->handle();
 }
コード例 #2
0
 /**
  * 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();
 }