Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
39 | public function canPlaceOrder() |
||
40 | { |
||
41 | $content = [ |
||
42 | 'petId' => 987654321, |
||
43 | 'quantity' => 10, |
||
44 | 'shipDate' => '2016-01-01T01:00:00Z', |
||
45 | 'complete' => false |
||
46 | ]; |
||
47 | |||
48 | $actual = $this->post('/v2/store/order', $content); |
||
49 | $this->assertSame('placed', $actual->status); |
||
50 | $this->assertSame($content['petId'], $actual->petId); |
||
51 | $this->assertSame($content['quantity'], $actual->quantity); |
||
52 | $this->assertInternalType('integer', $actual->id); |
||
53 | } |
||
54 | } |
||
55 |