@@ -14,7 +14,12 @@ class CreateTransactionTest extends \PHPUnit_Framework_TestCase
14
14
15
15
/**
16
16
* @covers Islandora\Chullo\Chullo::createTransaction
17
+ * @covers Islandora\Chullo\Chullo::getBaseUri
17
18
* @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
18
23
* @uses GuzzleHttp\Client
19
24
*/
20
25
public function testReturnsIdOn201 ()
@@ -28,12 +33,19 @@ public function testReturnsIdOn201()
28
33
$ api = new FedoraApi ($ guzzle );
29
34
$ client = new Chullo ($ api );
30
35
36
+ $ this ->assertEquals ($ client ->getBaseUri (), 'http://localhost:8080/fcrepo/rest ' );
37
+
31
38
$ result = $ client ->createTransaction ();
32
39
$ this ->assertSame ($ result , "tx:abc-123 " );
33
40
}
34
41
/**
35
42
* @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
36
47
* @covers Islandora\Chullo\FedoraApi::createTransaction
48
+ * @covers Islandora\Chullo\FedoraApi::generateTransactionUri
37
49
* @uses GuzzleHttp\Client
38
50
*/
39
51
public function testReturnsNullOtherwise ()
0 commit comments