Fixed undefined-index errors in BasePathPrefixerTest

This commit is contained in:
Alejandro Celaya 2019-09-13 20:46:49 +02:00
parent 0a1786c89a
commit 8d74e0c3ff

View File

@ -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,
],
[],
[],