Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function testCanConstruct() |
||
39 | { |
||
40 | |||
41 | $accountId = 'foo'; |
||
42 | $consumerKey = 'bar'; |
||
43 | $consumerSecret = 'biz'; |
||
44 | $token = 'baz'; |
||
45 | $tokenSecret = 'bee'; |
||
46 | $username = 'noo'; |
||
47 | $this->config = new Config($accountId, $consumerKey, $consumerSecret, $token, $tokenSecret, $username); |
||
48 | |||
49 | $service = new EngagementService($this->config); |
||
50 | |||
51 | $res1 = new \stdClass(); |
||
52 | $res1->baseUri = 'test'; |
||
53 | |||
54 | $service->getRequest()->setClient(MockClient::getClient([ |
||
55 | MockClient::createResponse($res1) |
||
56 | ])); |
||
57 | |||
58 | $this->assertInstanceOf(EngagementService::class, $service); |
||
59 | $this->assertInstanceOf(Request::class, $service->getRequest()); |
||
60 | } |
||
62 |