]> BookStack Code Mirror - bookstack/blobdiff - tests/BrowserKitTest.php
Added front-end toggle and testing of inline attachments
[bookstack] / tests / BrowserKitTest.php
index 135b9a28e0d19af2dbc6820d6de0a89a90dc7996..7917a0c409e881a7b8790c9a7c19584c5f1b0327 100644 (file)
@@ -47,14 +47,6 @@ abstract class BrowserKitTest extends TestCase
     }
 
 
-    /**
-     * Get a user that's not a system user such as the guest user.
-     */
-    public function getNormalUser()
-    {
-        return User::where('system_name', '=', null)->get()->last();
-    }
-
     /**
      * Quickly sets an array of settings.
      * @param $settingsArray
@@ -119,7 +111,7 @@ abstract class BrowserKitTest extends TestCase
      */
     protected function seeInNthElement($element, $position, $text, $negate = false)
     {
-        $method = $negate ? 'assertNotRegExp' : 'assertRegExp';
+        $method = $negate ? 'assertDoesNotMatchRegularExpression' : 'assertMatchesRegularExpression';
 
         $rawPattern = preg_quote($text, '/');