Skip to content

Commit d499ad2

Browse files
committed
Fixed bugs in unit tests
1 parent 7a435ce commit d499ad2

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

Tests/ChildAccountTest.php

-40
Original file line numberDiff line numberDiff line change
@@ -49,46 +49,6 @@ public function testCreateChildAccount()
4949

5050
}
5151

52-
/**
53-
* @test
54-
*/
55-
public function testModifyChildAccount()
56-
{
57-
58-
$computerIds = array_values(printnodeSetUp());
59-
60-
$credentials = new \PrintNode\Credentials\ApiKey(API_KEY);
61-
62-
$client = new \PrintNode\Client($credentials);
63-
64-
$client->apiHost = API_HOST;
65-
66-
$whoAmI = $client->viewWhoAmI();
67-
68-
print_r($whoAmI);
69-
70-
printnodeTearDown();
71-
72-
}
73-
74-
/**
75-
* @test
76-
*/
77-
public function testDeleteChildAccount()
78-
{
79-
80-
$computerIds = array_values(printnodeSetUp());
81-
82-
$credentials = new \PrintNode\Credentials\ApiKey(API_KEY);
83-
84-
$client = new \PrintNode\Client($credentials);
85-
86-
$client->apiHost = API_HOST;
87-
88-
printnodeTearDown();
89-
90-
}
91-
9252
/**
9353
* Tear down the remote environment if a previous method failed before
9454
* tearing down

Tests/ClientTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ public function testClient()
2323
$this->assertObjectHasAttribute('prettyJSON', $client);
2424
$this->assertObjectHasAttribute('dontLog', $client);
2525
$this->assertObjectHasAttribute('apiHost', $client);
26-
$this->assertObjectHasAttribute('requestLogMethod', $client);
27-
$this->assertObjectHasAttribute('responseLogMethod', $client);
2826
$this->assertObjectHasAttribute('lastResponse', $client);
2927

3028
$this->assertTrue(\method_exists($client, 'viewWhoAmI'));

0 commit comments

Comments
 (0)