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

@ -108,7 +108,7 @@ class LdapTest extends \TestCase
public function test_user_edit_form()
{
$editUser = User::all()->last();
$editUser = $this->getNormalUser();
$this->asAdmin()->visit('/settings/users/' . $editUser->id)
->see('Edit User')
->dontSee('Password')
@ -126,7 +126,7 @@ class LdapTest extends \TestCase
public function test_non_admins_cannot_change_auth_id()
{
$testUser = User::all()->last();
$testUser = $this->getNormalUser();
$this->actingAs($testUser)->visit('/settings/users/' . $testUser->id)
->dontSee('External Authentication');
}