Browse Source

better test description

This appears to be the actual intent of this test
AD7six 11 years ago
parent
commit
c6d361e8ac

+ 2 - 2
tests/TestCase/Controller/Component/RequestHandlerComponentTest.php

@@ -311,11 +311,11 @@ class RequestHandlerComponentTest extends TestCase {
 	}
 
 /**
- * testDisabling method
+ * Verify that isAjax is set on the request params for ajax requests
  *
  * @return void
  */
-	public function testDisabling() {
+	public function testIsAjaxParams() {
 		$this->request->env('HTTP_X_REQUESTED_WITH', 'XMLHttpRequest');
 		$event = new Event('Controller.startup', $this->Controller);
 		$this->RequestHandler->initialize([]);