Skip to content

Commit a0b06b6

Browse files
ruebotwhikloj
authored andcommitted
Codecoverage for prepareUri (#53)
1 parent 416f5a5 commit a0b06b6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/CreateTransactionTest.php

+12
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ class CreateTransactionTest extends \PHPUnit_Framework_TestCase
1414

1515
/**
1616
* @covers Islandora\Chullo\Chullo::createTransaction
17+
* @covers Islandora\Chullo\Chullo::getBaseUri
1718
* @covers Islandora\Chullo\FedoraApi::createTransaction
19+
* @covers Islandora\Chullo\FedoraApi::prepareUri
20+
* @covers Islandora\Chullo\FedoraApi::getBaseUri
21+
* @covers Islandora\Chullo\FedoraApi::createTransaction
22+
* @covers Islandora\Chullo\FedoraApi::generateTransactionUri
1823
* @uses GuzzleHttp\Client
1924
*/
2025
public function testReturnsIdOn201()
@@ -28,12 +33,19 @@ public function testReturnsIdOn201()
2833
$api = new FedoraApi($guzzle);
2934
$client = new Chullo($api);
3035

36+
$this->assertEquals($client->getBaseUri(), 'http://localhost:8080/fcrepo/rest');
37+
3138
$result = $client->createTransaction();
3239
$this->assertSame($result, "tx:abc-123");
3340
}
3441
/**
3542
* @covers Islandora\Chullo\Chullo::createTransaction
43+
* @covers Islandora\Chullo\Chullo::getBaseUri
44+
* @covers Islandora\Chullo\FedoraApi::createTransaction
45+
* @covers Islandora\Chullo\FedoraApi::prepareUri
46+
* @covers Islandora\Chullo\FedoraApi::getBaseUri
3647
* @covers Islandora\Chullo\FedoraApi::createTransaction
48+
* @covers Islandora\Chullo\FedoraApi::generateTransactionUri
3749
* @uses GuzzleHttp\Client
3850
*/
3951
public function testReturnsNullOtherwise()

0 commit comments

Comments
 (0)