diff --git a/core/modules/rest/tests/src/Unit/CollectRoutesTest.php b/core/modules/rest/tests/src/Unit/CollectRoutesTest.php index cd388ef..553a994 100644 --- a/core/modules/rest/tests/src/Unit/CollectRoutesTest.php +++ b/core/modules/rest/tests/src/Unit/CollectRoutesTest.php @@ -95,6 +95,9 @@ protected function setUp() { // Set the style option. $this->restExport->setOption('style', array('type' => 'serializer')); + // Set the auth option. + $this->restExport->setOption('auth', ['basic_auth']); + $display_manager->expects($this->once()) ->method('getDefinition') ->will($this->returnValue(array('id' => 'test', 'provider' => 'test')));