mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 04:05:57 +00:00
25 lines
542 B
PHP
25 lines
542 B
PHP
<?php
|
|
|
|
class SortTest extends TestCase
|
|
{
|
|
protected $book;
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
$this->book = \BookStack\Book::first();
|
|
}
|
|
|
|
public function test_drafts_do_not_show_up()
|
|
{
|
|
$this->asAdmin();
|
|
$pageRepo = app('\BookStack\Repos\PageRepo');
|
|
$draft = $pageRepo->getDraftPage($this->book);
|
|
|
|
$this->visit($this->book->getUrl())
|
|
->see($draft->name)
|
|
->visit($this->book->getUrl() . '/sort')
|
|
->dontSee($draft->name);
|
|
}
|
|
|
|
} |