mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 09:13:11 +08:00
Changed behavior of domains list so that it does not return configured redirects as redirects for default domain
This commit is contained in:
29
module/Core/test/Config/EmptyNotFoundRedirectConfigTest.php
Normal file
29
module/Core/test/Config/EmptyNotFoundRedirectConfigTest.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ShlinkioTest\Shlink\Core\Config;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Shlinkio\Shlink\Core\Config\EmptyNotFoundRedirectConfig;
|
||||
|
||||
class EmptyNotFoundRedirectConfigTest extends TestCase
|
||||
{
|
||||
private EmptyNotFoundRedirectConfig $redirectsConfig;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->redirectsConfig = new EmptyNotFoundRedirectConfig();
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function allMethodsReturnHardcodedValues(): void
|
||||
{
|
||||
self::assertNull($this->redirectsConfig->invalidShortUrlRedirect());
|
||||
self::assertFalse($this->redirectsConfig->hasInvalidShortUrlRedirect());
|
||||
self::assertNull($this->redirectsConfig->regular404Redirect());
|
||||
self::assertFalse($this->redirectsConfig->hasRegular404Redirect());
|
||||
self::assertNull($this->redirectsConfig->baseUrlRedirect());
|
||||
self::assertFalse($this->redirectsConfig->hasBaseUrlRedirect());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user