We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c2ea68 commit 8f115f7Copy full SHA for 8f115f7
src/AppBundle/Tests/Issues/IssueListenerTest.php
@@ -153,10 +153,10 @@ public function getCommentsForStatusChange()
153
public function testHandlePullRequestCreatedEvent()
154
{
155
$this->statusApi->expects($this->once())
156
- ->method('setIssueStatus')
157
- ->with(1234, Status::NEEDS_REVIEW);
+ ->method('setIssueLabels')
+ ->with(1234, array(Status::NEEDS_REVIEW));
158
159
- $newStatus = $this->listener->handlePullRequestCreatedEvent(1234);
+ $newStatus = $this->listener->handlePullRequestCreatedEvent(1234, 'The title', 'The description.');
160
161
$this->assertSame(Status::NEEDS_REVIEW, $newStatus);
162
}
0 commit comments