Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function test_is_active_when_connected() { |
||
27 | $access_token = (object) [ |
||
28 | 'secret' => 'abcd1234', |
||
29 | 'external_user_id' => 1, |
||
30 | ]; |
||
31 | $this->manager->expects( $this->once() ) |
||
32 | ->method( 'get_access_token' ) |
||
33 | ->will( $this->returnValue( $access_token ) ); |
||
34 | |||
35 | $this->assertTrue( $this->manager->is_active() ); |
||
36 | } |
||
37 | |||
49 |