"updated_by": 1,
"owned_by": 1,
"description_html": "<p>This is a <strong>great new chapter<\/strong> that I've created via the API<\/p>",
+ "default_template_id": 25,
+ "book_slug": "example-book",
"tags": [
{
"name": "Category",
"order": 0
}
]
--}
++}
"updated_by": 1,
"owned_by": 1,
"description_html": "<p>This is an <strong>updated chapter<\/strong> that I've altered via the API<\/p>",
+ "default_template_id": 2428,
+ "book_slug": "example-book",
"tags": [
{
"name": "Category",
"order": 0
}
]
--}
++}
'name' => $page->name,
],
],
+ 'default_template_id' => null,
]);
+ $resp->assertJsonMissingPath('book');
$resp->assertJsonCount($chapter->pages()->count(), 'pages');
}