public function testIssueUnLabeledWithTaskNotFound() { $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_unlabeled.json'), true); $this->assertFalse($g->handleIssueUnlabeled($payload['issue'], $payload['label'])); }