Ejemplo n.º 1
0
 public function testPullRequest1()
 {
     $events = $this->getEvents1();
     $ev = $events[0];
     $e = $this->handler->handleEvent($ev);
     $this->assertEquals(4582016, $e->getActor()->getId());
     $this->assertTrue($e->getPullRequest()->getHead()->getRepository()->getOwner()->isOrg());
     $this->assertTrue($e->getPullRequest()->getBase()->getRepository()->getOwner()->isOrg());
 }
Ejemplo n.º 2
0
 public function testProcessorManagerIsAccessible()
 {
     $handler = EventHandler::create()->build();
     $this->assertInstanceOf('Ikwattro\\GithubEvent\\EventProcessorManager', $handler->getEventProcessorManager());
 }