mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-04 21:24:58 -06:00
Added tests covering redirect simplified config parsing
This commit is contained in:
parent
0d54b7696f
commit
590fc3fc92
@ -41,6 +41,8 @@ class SimplifiedConfigParserTest extends TestCase
|
|||||||
'validate_url' => true,
|
'validate_url' => true,
|
||||||
'delete_short_url_threshold' => 50,
|
'delete_short_url_threshold' => 50,
|
||||||
'invalid_short_url_redirect_to' => 'foobar.com',
|
'invalid_short_url_redirect_to' => 'foobar.com',
|
||||||
|
'regular_404_redirect_to' => 'bar.com',
|
||||||
|
'base_url_redirect_to' => 'foo.com',
|
||||||
'redis_servers' => [
|
'redis_servers' => [
|
||||||
'tcp://1.1.1.1:1111',
|
'tcp://1.1.1.1:1111',
|
||||||
'tcp://1.2.2.2:2222',
|
'tcp://1.2.2.2:2222',
|
||||||
@ -114,6 +116,8 @@ class SimplifiedConfigParserTest extends TestCase
|
|||||||
|
|
||||||
'not_found_redirects' => [
|
'not_found_redirects' => [
|
||||||
'invalid_short_url' => 'foobar.com',
|
'invalid_short_url' => 'foobar.com',
|
||||||
|
'regular_404' => 'bar.com',
|
||||||
|
'base_url' => 'foo.com',
|
||||||
],
|
],
|
||||||
|
|
||||||
'mezzio-swoole' => [
|
'mezzio-swoole' => [
|
||||||
|
Loading…
Reference in New Issue
Block a user