Skip to content

Commit 2db76fa

Browse files
Updated related tests
1 parent af12ef9 commit 2db76fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Github/Tests/Api/PullRequestTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ public function shouldMergePullRequest()
143143
$api = $this->getApiMock();
144144
$api->expects($this->once())
145145
->method('put')
146-
->with('repos/ezsystems/ezpublish/pulls/15/merge', array('commit_message' => 'Merged something'))
146+
->with('repos/ezsystems/ezpublish/pulls/15/merge', array('commit_message' => 'Merged something', 'sha' => str_repeat('A', 40)))
147147
->will($this->returnValue($expectedArray));
148148

149-
$this->assertEquals($expectedArray, $api->merge('ezsystems', 'ezpublish', 15, 'Merged something'));
149+
$this->assertEquals($expectedArray, $api->merge('ezsystems', 'ezpublish', 15, 'Merged something', str_repeat('A', 40)));
150150
}
151151

152152
/**

0 commit comments

Comments
 (0)