diff --git a/framework/core/src/User/User.php b/framework/core/src/User/User.php index f9ea41756e..cc1ac95c8f 100644 --- a/framework/core/src/User/User.php +++ b/framework/core/src/User/User.php @@ -650,7 +650,7 @@ public function assertCan($ability, $arguments = null) */ public function assertAdmin() { - $this->assertCan($this, 'administrate'); + $this->assertCan('administrate'); } /**