]> BookStack Code Mirror - bookstack/blobdiff - tests/Permissions/RolePermissionsTest.php
My Account: Covered profile and auth pages with tests
[bookstack] / tests / Permissions / RolePermissionsTest.php
index d15c1617c67b885276a9ac67b08bf8494439f23e..ccb158faf5f3859fc59185f1861d1d5310ccd278 100644 (file)
@@ -49,6 +49,7 @@ class RolePermissionsTest extends TestCase
 
         $resp = $this->get('/my-account/profile')->assertOk();
         $this->withHtml($resp)->assertElementExists('input[name=email][disabled]');
+        $resp->assertSee('Unfortunately you don\'t have permission to change your email address.');
         $this->put('/my-account/profile', [
             'name'  => 'my_new_name',
             'email' => '[email protected]',