mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Re-structured the app code to be feature based rather than code type based
This commit is contained in:
@ -1,12 +1,14 @@
|
||||
<?php namespace Tests;
|
||||
|
||||
|
||||
use BookStack\Entities\Book;
|
||||
|
||||
class ActivityTrackingTest extends BrowserKitTest
|
||||
{
|
||||
|
||||
public function test_recently_viewed_books()
|
||||
{
|
||||
$books = \BookStack\Book::all()->take(10);
|
||||
$books = Book::all()->take(10);
|
||||
|
||||
$this->asAdmin()->visit('/books')
|
||||
->dontSeeInElement('#recents', $books[0]->name)
|
||||
@ -20,7 +22,7 @@ class ActivityTrackingTest extends BrowserKitTest
|
||||
|
||||
public function test_popular_books()
|
||||
{
|
||||
$books = \BookStack\Book::all()->take(10);
|
||||
$books = Book::all()->take(10);
|
||||
|
||||
$this->asAdmin()->visit('/books')
|
||||
->dontSeeInElement('#popular', $books[0]->name)
|
||||
|
Reference in New Issue
Block a user