File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ public function testOnPullRequestOpen()
5656
5757 public function testOnPullRequestOpenWIP ()
5858 {
59- $ this ->statusApi ->expects ($ this ->never ())
59+ $ this ->statusApi ->expects ($ this ->once ())
6060 ->method ('setIssueStatus ' )
61- ->with (1234 , Status::NEEDS_REVIEW );
61+ ->with (1234 , Status::NEEDS_WORK );
6262
6363 $ event = new GitHubEvent ([
6464 'action ' => 'opened ' ,
@@ -68,7 +68,9 @@ public function testOnPullRequestOpenWIP()
6868 $ this ->dispatcher ->dispatch ($ event , GitHubEvents::PULL_REQUEST );
6969
7070 $ responseData = $ event ->getResponseData ();
71- $ this ->assertEmpty ($ responseData );
71+ $ this ->assertCount (2 , $ responseData );
72+ $ this ->assertSame (1234 , $ responseData ['pull_request ' ]);
73+ $ this ->assertSame (Status::NEEDS_WORK , $ responseData ['status_change ' ]);
7274 }
7375
7476 public function testOnPullRequestNotOpen ()
You can’t perform that action at this time.
0 commit comments