summaryrefslogtreecommitdiffstats
path: root/core/modules/rest/tests/src/Functional/ResourceTestBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/rest/tests/src/Functional/ResourceTestBase.php')
-rw-r--r--core/modules/rest/tests/src/Functional/ResourceTestBase.php25
1 files changed, 2 insertions, 23 deletions
diff --git a/core/modules/rest/tests/src/Functional/ResourceTestBase.php b/core/modules/rest/tests/src/Functional/ResourceTestBase.php
index a23a567..8283bef 100644
--- a/core/modules/rest/tests/src/Functional/ResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/ResourceTestBase.php
@@ -144,12 +144,12 @@ abstract class ResourceTestBase extends BrowserTestBase {
* @param string[] $authentication
* The allowed authentication providers for this resource.
*/
- protected function provisionResource($formats = [], $authentication = [], array $methods = ['GET', 'POST', 'PATCH', 'DELETE']) {
+ protected function provisionResource($formats = [], $authentication = []) {
$this->resourceConfigStorage->create([
'id' => static::$resourceConfigId,
'granularity' => RestResourceConfigInterface::RESOURCE_GRANULARITY,
'configuration' => [
- 'methods' => $methods,
+ 'methods' => ['GET', 'POST', 'PATCH', 'DELETE'],
'formats' => $formats,
'authentication' => $authentication,
],
@@ -481,25 +481,4 @@ abstract class ResourceTestBase extends BrowserTestBase {
return $request_options;
}
- /**
- * Recursively sorts an array by key.
- *
- * @param array $array
- * An array to sort.
- *
- * @return array
- * The sorted array.
- */
- protected static function recursiveKSort(array &$array) {
- // First, sort the main array.
- ksort($array);
-
- // Then check for child arrays.
- foreach ($array as $key => &$value) {
- if (is_array($value)) {
- static::recursiveKSort($value);
- }
- }
- }
-
}