Browse Source

Merge pull request #4725 from dakota/patch-8

3.0 - Change default request data to empty array instead of null in IntegrationTestCase
José Lorenzo Rodríguez 11 years ago
parent
commit
209bf7ac74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/TestSuite/IntegrationTestCase.php

+ 1 - 1
src/TestSuite/IntegrationTestCase.php

@@ -240,7 +240,7 @@ abstract class IntegrationTestCase extends TestCase {
  * @param array|null $data The request data.
  * @return void
  */
-	protected function _sendRequest($url, $method, $data = null) {
+	protected function _sendRequest($url, $method, $data = []) {
 		$request = $this->_buildRequest($url, $method, $data);
 		$response = new Response();
 		$dispatcher = DispatcherFactory::create();