@@ -67,33 +67,33 @@ private function _buildController()
6767 }
6868
6969 /**
70- * tests authorization is enabled but not ignored
70+ * tests authorization is checked to avoid
71+ * AuthorizationRequiredException throwned
7172 *
7273 * @return void
7374 */
74- public function testDontIgnoreAuthorization ()
75+ public function testIgnoreAuthorization ()
7576 {
7677 $ controller = $ this ->_buildController ();
7778 $ event = new Event ('testing ' );
7879 $ controller ->beforeFilter ($ event );
7980
80- $ this ->assertFalse ($ controller ->getRequest ()->getAttribute ('authorization ' )->authorizationChecked ());
81+ $ this ->assertTrue ($ controller ->getRequest ()->getAttribute ('authorization ' )->authorizationChecked ());
8182 }
8283
8384 /**
84- * tests authorization is checked to avoid
85- * AuthorizationRequiredException throwned
85+ * tests authorization is enabled but not ignored
8686 *
8787 * @return void
8888 */
89- public function testIgnoreAuthorization ()
89+ public function testDontIgnoreAuthorization ()
9090 {
91- Configure::write ('DebugKit.ignoreAuthorization ' , true );
91+ Configure::write ('DebugKit.ignoreAuthorization ' , false );
9292
9393 $ controller = $ this ->_buildController ();
9494 $ event = new Event ('testing ' );
9595 $ controller ->beforeFilter ($ event );
9696
97- $ this ->assertTrue ($ controller ->getRequest ()->getAttribute ('authorization ' )->authorizationChecked ());
97+ $ this ->assertFalse ($ controller ->getRequest ()->getAttribute ('authorization ' )->authorizationChecked ());
9898 }
9999}
0 commit comments