File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function setUp()
28
28
29
29
$ this ->def = [
30
30
'method ' => 'GET ' ,
31
- 'path ' => 'test ' ,
31
+ 'path ' => 'test ' ,
32
32
'params ' => [],
33
33
];
34
34
@@ -48,13 +48,17 @@ public function test_it_sends_a_request_when_operations_are_executed()
48
48
$ this ->client ->request ('GET ' , 'test ' , ['headers ' => []])->willReturn (new Response ());
49
49
50
50
$ this ->operator ->execute ($ this ->def , []);
51
+
52
+ self ::assertTrue (true );
51
53
}
52
54
53
55
public function test_it_sends_a_request_when_async_operations_are_executed ()
54
56
{
55
57
$ this ->client ->requestAsync ('GET ' , 'test ' , ['headers ' => []])->willReturn (new Promise ());
56
58
57
59
$ this ->operator ->executeAsync ($ this ->def , []);
60
+
61
+ self ::assertTrue (true );
58
62
}
59
63
60
64
public function test_it_wraps_sequential_ops_in_promise_when_async_is_appended_to_method_name ()
@@ -90,10 +94,12 @@ public function test_it_returns_a_model_instance()
90
94
{
91
95
$ this ->assertInstanceOf (ResourceInterface::class, $ this ->operator ->model (TestResource::class));
92
96
}
97
+
93
98
public function test_it_populates_models_from_response ()
94
99
{
95
100
$ this ->assertInstanceOf (ResourceInterface::class, $ this ->operator ->model (TestResource::class, new Response (200 )));
96
101
}
102
+
97
103
public function test_it_populates_models_from_arrays ()
98
104
{
99
105
$ data = ['flavor ' => [], 'image ' => []];
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class BuilderTest extends \PHPUnit\Framework\TestCase
18
18
private $ builder ;
19
19
private $ client ;
20
20
21
- public function __construct ()
21
+ public function setUp ()
22
22
{
23
23
$ this ->client = $ this ->prophesize (ClientInterface::class);
24
24
$ this ->builder = new Builder ($ this ->client ->reveal ());
You can’t perform that action at this time.
0 commit comments