Skip to content

Commit 8f115f7

Browse files
committed
Fixed tests
1 parent 0c2ea68 commit 8f115f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AppBundle/Tests/Issues/IssueListenerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ public function getCommentsForStatusChange()
153153
public function testHandlePullRequestCreatedEvent()
154154
{
155155
$this->statusApi->expects($this->once())
156-
->method('setIssueStatus')
157-
->with(1234, Status::NEEDS_REVIEW);
156+
->method('setIssueLabels')
157+
->with(1234, array(Status::NEEDS_REVIEW));
158158

159-
$newStatus = $this->listener->handlePullRequestCreatedEvent(1234);
159+
$newStatus = $this->listener->handlePullRequestCreatedEvent(1234, 'The title', 'The description.');
160160

161161
$this->assertSame(Status::NEEDS_REVIEW, $newStatus);
162162
}

0 commit comments

Comments
 (0)