euromark 11 年 前
コミット
f9d09ad096
2 ファイル変更1 行追加23 行削除
  1. 1 6
      docs/TestSuite/Testing.md
  2. 0 17
      src/TestSuite/IntegrationTestCase.php

+ 1 - 6
docs/TestSuite/Testing.md

@@ -35,12 +35,7 @@ php phpunit.phar --filter testFooBar /path/to/SomeTest.php -vv
 
 ## IntegrationTestCase
 
-You can directly pass an array as URL now:
-```php
-$this->post(array('controller' => 'ControllerName', ...), $data);
-```
-
-Also see the above trait features.
+See the above trait features.
 
 ## TestCase
 `assertNotWithinMargin()` as the opposite of `assertWithinMargin()` is available.

+ 0 - 17
src/TestSuite/IntegrationTestCase.php

@@ -13,21 +13,4 @@ abstract class IntegrationTestCase extends CakeIntegrationTestCase {
 
 	use ToolsTestTrait;
 
-	/**
-	 * Create a request object with the configured options and parameters.
-	 *
-	 * Overwrite to allow array URLs.
-	 *
-	 * @param string|array $url The URL
-	 * @param string $method The HTTP method
-	 * @param array|null $data The request data.
-	 * @return \Cake\Network\Request The built request.
-	 */
-	protected function _buildRequest($url, $method, $data) {
-		if (is_array($url)) {
-			$url = Router::url($url);
-		}
-		return parent::_buildRequest($url, $method, $data);
-	}
-
 }