|
|
@@ -271,7 +271,7 @@ trait IntegrationTestTrait
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Configures the data for the *next* request.
|
|
|
+ * Configures the data for the *next* request merging with existing state.
|
|
|
*
|
|
|
* This data is cleared in the tearDown() method.
|
|
|
*
|
|
|
@@ -288,6 +288,17 @@ trait IntegrationTestTrait
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Configures the data for the *next* request replacing existing state.
|
|
|
+ *
|
|
|
+ * @param array $data The request data to use.
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function replaceRequest(array $data): void
|
|
|
+ {
|
|
|
+ $this->_request = $data;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Sets HTTP headers for the *next* request to be identified as JSON request.
|
|
|
*
|
|
|
* @return void
|