File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,22 @@ class api_base_Test extends mondido\test\test_base {
12
12
13
13
public function testGetApiUrl ()
14
14
{
15
+ echo "Testing api_base::getApiUrl() \n" ;
16
+
15
17
$ url = mondido \api \api_base::getApiUrl ();
16
18
$ this ->assertEquals ('https://api.mondido.com/v1/ ' , $ url );
17
19
}
18
20
19
21
public function testPassword ()
20
22
{
23
+ echo "Testing api_base::getPassword() \n" ;
21
24
$ val = mondido \api \api_base::getPassword ();
22
25
$ this ->assertEquals ('custom00 ' , $ val );
23
26
}
24
27
25
28
public function testUsername ()
26
29
{
30
+ echo "Testing api_base::getUsername() \n" ;
27
31
$ val = mondido \api \api_base::getUsername ();
28
32
$ this ->assertEquals ('3 ' , $ val );
29
33
}
Original file line number Diff line number Diff line change 15
15
class api_transaction_Test extends test_base {
16
16
17
17
public function testGetTransaction (){
18
+ echo "Testing transaction::get \n" ;
19
+
18
20
$ transaction = transaction::get (443 );
19
21
$ this ->assertEquals (443 , $ transaction ['id ' ]);
20
22
}
21
23
22
24
public function testGetTransactionsLimitOffset (){
25
+ echo "Testing transaction::index \n" ;
23
26
$ transactions = transaction::index (10 ,0 );
24
27
$ this ->assertEquals (10 , count ($ transactions ));
25
28
}
Original file line number Diff line number Diff line change 15
15
16
16
class webhook_Test extends test_base {
17
17
18
+ /**
19
+ * @covers webhook::get
20
+ */
18
21
public function testGetwebhook (){
22
+ echo "Testing webhook::get \n" ;
19
23
$ transaction = transaction::get (443 );
20
24
$ path = 'wh.json ' ;
21
25
file_put_contents ($ path , json_encode ($ transaction ));
You can’t perform that action at this time.
0 commit comments