public function testIssueClosedWithTaskNotFound() { $p = new Project($this->container); $this->assertEquals(1, $p->create(array('name' => 'foobar'))); $g = new GithubWebhook($this->container); $g->setProjectId(1); $payload = json_decode(file_get_contents(__DIR__ . '/../fixtures/github_issue_closed.json'), true); $this->assertFalse($g->handleIssueClosed($payload['issue'])); }