mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 01:33:11 +08:00
Migrated NotFoundRedirectOptions to immutable object
This commit is contained in:
@@ -55,7 +55,7 @@ class DomainRedirectsRequestTest extends TestCase
|
||||
yield 'some values' => [['domain' => 'foo', 'regular404Redirect' => 'bar'], null, 'foo', null, 'bar', null];
|
||||
yield 'fallbacks' => [
|
||||
['domain' => 'domain', 'baseUrlRedirect' => 'bar'],
|
||||
new NotFoundRedirectOptions(['regular404' => 'fallback', 'invalidShortUrl' => 'fallback2']),
|
||||
new NotFoundRedirectOptions(invalidShortUrl: 'fallback2', regular404: 'fallback'),
|
||||
'domain',
|
||||
'bar',
|
||||
'fallback',
|
||||
@@ -63,7 +63,7 @@ class DomainRedirectsRequestTest extends TestCase
|
||||
];
|
||||
yield 'fallback ignored' => [
|
||||
['domain' => 'domain', 'regular404Redirect' => 'bar', 'invalidShortUrlRedirect' => null],
|
||||
new NotFoundRedirectOptions(['regular404' => 'fallback', 'invalidShortUrl' => 'fallback2']),
|
||||
new NotFoundRedirectOptions(invalidShortUrl: 'fallback2', regular404: 'fallback'),
|
||||
'domain',
|
||||
null,
|
||||
'bar',
|
||||
|
||||
Reference in New Issue
Block a user