]> BookStack Code Mirror - bookstack/blobdiff - tests/ActivityTrackingTest.php
Fixes for CodeStyle vol.2
[bookstack] / tests / ActivityTrackingTest.php
index bb65fbcf4b8745ec7d9b39c8e0bd5b20de1cbe71..494a1f5060b6f8ee271a73f144de98fb5f27d962 100644 (file)
@@ -1,12 +1,14 @@
-<?php namespace Tests;
+<?php
 
+namespace Tests;
+
+use BookStack\Entities\Models\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)