From 8d74e0c3ff6846849b865b343737317f0ca9eea3 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 13 Sep 2019 20:46:49 +0200 Subject: [PATCH] Fixed undefined-index errors in BasePathPrefixerTest --- module/Core/test/Config/BasePathPrefixerTest.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/module/Core/test/Config/BasePathPrefixerTest.php b/module/Core/test/Config/BasePathPrefixerTest.php index 93ae72db..248d6594 100644 --- a/module/Core/test/Config/BasePathPrefixerTest.php +++ b/module/Core/test/Config/BasePathPrefixerTest.php @@ -43,12 +43,18 @@ class BasePathPrefixerTest extends TestCase public function provideConfig(): iterable { - yield 'without anything' => [[], [], [], '']; + $urlShortener = [ + 'domain' => [ + 'hostname' => null, + ], + ]; + + yield 'without anything' => [['url_shortener' => $urlShortener], [], [], '']; yield 'with empty options' => [ [ 'routes' => [], 'middleware_pipeline' => [], - 'url_shortener' => [], + 'url_shortener' => $urlShortener, ], [], [],