]> BookStack Code Mirror - bookstack/blobdiff - tests/User/UserProfileTest.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / tests / User / UserProfileTest.php
index 77f1644a5e184335419e5ee121b1e9f816e2abbf..065ae8dc896c3c10a5af47fbb005f843425a0dcd 100644 (file)
@@ -2,9 +2,9 @@
 
 namespace Tests\User;
 
-use Activity;
-use BookStack\Actions\ActivityType;
-use BookStack\Auth\User;
+use BookStack\Activity\ActivityType;
+use BookStack\Facades\Activity;
+use BookStack\Users\Models\User;
 use Tests\TestCase;
 
 class UserProfileTest extends TestCase
@@ -88,8 +88,8 @@ class UserProfileTest extends TestCase
 
     public function test_profile_has_search_links_in_created_entity_lists()
     {
-        $user = $this->getEditor();
-        $resp = $this->actingAs($this->getAdmin())->get('/user/' . $user->slug);
+        $user = $this->users->editor();
+        $resp = $this->actingAs($this->users->admin())->get('/user/' . $user->slug);
 
         $expectedLinks = [
             '/search?term=%7Bcreated_by%3A' . $user->slug . '%7D+%7Btype%3Apage%7D',