mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-01-03 23:42:28 +03:00
Input WYSIWYG: Updated tests, Added simple html limiting
This commit is contained in:
@@ -23,12 +23,12 @@ class ChapterTest extends TestCase
|
||||
$resp = $this->get($book->getUrl('/create-chapter'));
|
||||
$this->withHtml($resp)->assertElementContains('form[action="' . $book->getUrl('/create-chapter') . '"][method="POST"]', 'Save Chapter');
|
||||
|
||||
$resp = $this->post($book->getUrl('/create-chapter'), $chapter->only('name', 'description'));
|
||||
$resp = $this->post($book->getUrl('/create-chapter'), $chapter->only('name', 'description_html'));
|
||||
$resp->assertRedirect($book->getUrl('/chapter/my-first-chapter'));
|
||||
|
||||
$resp = $this->get($book->getUrl('/chapter/my-first-chapter'));
|
||||
$resp->assertSee($chapter->name);
|
||||
$resp->assertSee($chapter->description);
|
||||
$resp->assertSee($chapter->description_html, false);
|
||||
}
|
||||
|
||||
public function test_delete()
|
||||
|
||||
Reference in New Issue
Block a user