$resp->assertOk();
$resp->assertSee('Copy Chapter');
$resp->assertElementExists("input[name=\"name\"][value=\"{$chapter->name}\"]");
- $resp->assertElementExists("input[name=\"entity_selection\"]");
+ $resp->assertElementExists('input[name="entity_selection"]');
}
public function test_copy()
$otherBook = Book::query()->where('id', '!=', $chapter->book_id)->first();
$resp = $this->asEditor()->post($chapter->getUrl('/copy'), [
- 'name' => 'My copied chapter',
+ 'name' => 'My copied chapter',
'entity_selection' => 'book:' . $otherBook->id,
]);