X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e408067b10c97362088806b00d06e968049fd5e4..refs/pull/2700/head:/tests/BrowserKitTest.php diff --git a/tests/BrowserKitTest.php b/tests/BrowserKitTest.php index 6c332a984..45e20b5e2 100644 --- a/tests/BrowserKitTest.php +++ b/tests/BrowserKitTest.php @@ -4,7 +4,6 @@ use BookStack\Auth\User; use BookStack\Entities\Models\Book; use BookStack\Entities\Models\Chapter; use BookStack\Entities\Models\Entity; -use BookStack\Auth\Role; use BookStack\Auth\Permissions\PermissionService; use BookStack\Entities\Models\Page; use BookStack\Settings\SettingService; @@ -120,7 +119,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, '/');