Skip to content

Commit d3880e3

Browse files
Added real test
1 parent 7bf4fba commit d3880e3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/ClientTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,18 @@ public function testCreateClient()
3131
$this->assertInstanceOf(Client::class, $client);
3232
$this->assertInstanceOf(HttpMethodsClient::class, $client->getHttpClient());
3333
}
34+
35+
public function testShowRepo()
36+
{
37+
$client = new Client();
38+
39+
$response = $client
40+
->repositories()
41+
->users('atlassian')
42+
->show('stash-example-plugin');
43+
44+
$this->assertIsArray($response);
45+
$this->assertTrue(isset($response['uuid']));
46+
$this->assertSame('{7dd600e6-0d9c-4801-b967-cb4cc17359ff}', $response['uuid']);
47+
}
3448
}

0 commit comments

Comments
 (0)