diff --git a/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php b/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php index 1ae3889a337..1041a8195b2 100644 --- a/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php @@ -1854,7 +1854,7 @@ public function testValidatePostUnexpectedDebugToken() { public function testAuthRequiredThrowsExceptionTokenNotFoundPost() { $this->Controller->Security->requireAuth = array('protected'); $this->Controller->request->params['action'] = 'protected'; - $this->Controller->request->data = 'notEmpty'; + $this->Controller->request->data = array('some-key' => 'some-value'); $this->Controller->Security->authRequired($this->Controller); }