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 9b080cd commit f9b516eCopy full SHA for f9b516e
test/Bitbucket/Tests/API/Http/ClientTest.php
@@ -135,6 +135,18 @@ public function testShouldDoPatchRequestAndReturnResponseInstance()
135
$this->assertInstanceOf('\Buzz\Message\MessageInterface', $response);
136
}
137
138
+ public function testClientIsKeptWhenInvokingChildFactory()
139
+ {
140
+ $options = [
141
+ 'base_url' => 'localhost'
142
+ ];
143
+ $client = new Client($options);
144
+ $pullRequest = new \Bitbucket\API\Repositories\PullRequests();
145
+ $pullRequest->setClient($client);
146
+ $comments = $pullRequest->comments();
147
+ $this->assertSame($client, $comments->getClient());
148
+ }
149
+
150
public function testAddListener()
151
{
152
$listener = $this->getListenerMock();
0 commit comments