Slide 98
Slide 98 text
ςετΛมߋ͢Δ
$expected = [
'articles' => [
[
'id' => 1,
'user_id' => 1,
'title' => 'First Published Article',
'slug' => 'first-published-article',
'body' => 'First Published Body',
'published' => 1,
'created' => '2018-01-07T15:47:01+00:00',
'modified' => '2018-01-07T15:47:02+00:00',
],
[
'id' => 2,
'user_id' => 1,
'title' => 'Unpublished Article',
'slug' => 'unpublished-article',
'body' => 'Unpublished Article Body',
'published' => 0,
'created' => '2018-01-07T15:47:01+00:00',
'modified' => '2018-01-07T15:47:02+00:00',
],
],
];
$expected = json_encode($expected, JSON_PRETTY_PRINT);
$this->assertSame($expected, (string)$this->_response->getBody());