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 cb8b867 commit 3c1b28aCopy full SHA for 3c1b28a
test/Bitbucket/Tests/API/Repositories/PullRequestsTest.php
@@ -10,6 +10,20 @@
10
*/
11
class PullRequestsTest extends Tests\TestCase
12
{
13
- public function testDummy()
14
- {}
+ public function testGetAllPullRequests()
+ {
15
+ $endpoint = 'repositories/gentle/eof/pullrequests';
16
+ $expectedResult = json_encode('dummy');
17
+
18
+ $pullRequests = $this->getApiMock('Bitbucket\API\Repositories\PullRequests');
19
+ $pullRequests->expects($this->once())
20
+ ->method('requestGet')
21
+ ->with($endpoint)
22
+ ->will( $this->returnValue($expectedResult) );
23
24
+ /** @var $pullRequests \Bitbucket\API\Repositories\PullRequests */
25
+ $actual = $pullRequests->all('gentle', 'eof');
26
27
+ $this->assertEquals($expectedResult, $actual);
28
+ }
29
}
0 commit comments