]> BookStack Code Mirror - bookstack/blob - tests/Entity/SortTest.php
Added auto-suggestions to tag names and values
[bookstack] / tests / Entity / SortTest.php
1 <?php
2
3 class SortTest extends TestCase
4 {
5     protected $book;
6
7     public function setUp()
8     {
9         parent::setUp();
10         $this->book = \BookStack\Book::first();
11     }
12
13     public function test_drafts_do_not_show_up()
14     {
15         $this->asAdmin();
16         $pageRepo = app('\BookStack\Repos\PageRepo');
17         $draft = $pageRepo->getDraftPage($this->book);
18
19         $this->visit($this->book->getUrl())
20             ->see($draft->name)
21             ->visit($this->book->getUrl() . '/sort')
22             ->dontSee($draft->name);
23     }
24
25 }