Example #1
0
 public function testInitialState()
 {
     $this->assertSame($this->payload, $this->event->getPayload());
     $this->assertEmpty($this->event->getProcesses());
 }
Example #2
0
 /**
  * @param WebhookEvent $event
  *
  * @return bool
  */
 private function supports(WebhookEvent $event)
 {
     $payload = $event->getPayload();
     return isset($payload['repository']) && isset($payload['repository']['full_name']) && isset($payload['ref']) && $payload['repository']['full_name'] === 'php-lug/lug' && $payload['ref'] === 'refs/heads/master';
 }