projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
web
/
core
/
modules
/
rest
/
tests
/
src
/
Unit
/
CollectRoutesTest.php
diff --git
a/web/core/modules/rest/tests/src/Unit/CollectRoutesTest.php
b/web/core/modules/rest/tests/src/Unit/CollectRoutesTest.php
index 3b1c1f7f398d0f14b10069b3c8cdcc5dbf823fc8..e171e047c8eff7ec82e172b90795ede17866bc5b 100644
(file)
--- a/
web/core/modules/rest/tests/src/Unit/CollectRoutesTest.php
+++ b/
web/core/modules/rest/tests/src/Unit/CollectRoutesTest.php
@@
-84,6
+84,8
@@
class CollectRoutesTest extends UnitTestCase {
->method('getSortedProviders')
->will($this->returnValue(['basic_auth' => 'data', 'cookie' => 'data']));
->method('getSortedProviders')
->will($this->returnValue(['basic_auth' => 'data', 'cookie' => 'data']));
+ $container->setParameter('serializer.format_providers', ['json']);
+
\Drupal::setContainer($container);
$this->restExport = RestExport::create($container, [], "test_routes", []);
\Drupal::setContainer($container);
$this->restExport = RestExport::create($container, [], "test_routes", []);