1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Updated and added tests for new default user system

Closes #138
This commit is contained in:
Dan Brown
2016-09-29 17:07:58 +01:00
parent b662670efc
commit 3b7d223b0c
11 changed files with 148 additions and 56 deletions

View File

@ -146,7 +146,7 @@ class AuthTest extends TestCase
public function test_user_updating()
{
$user = \BookStack\User::all()->last();
$user = $this->getNormalUser();
$password = $user->password;
$this->asAdmin()
->visit('/settings/users')
@ -162,7 +162,7 @@ class AuthTest extends TestCase
public function test_user_password_update()
{
$user = \BookStack\User::all()->last();
$user = $this->getNormalUser();
$userProfilePage = '/settings/users/' . $user->id;
$this->asAdmin()
->visit($userProfilePage)