mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-12 01:54:41 +08:00
Moved some config to the proper namespace, now that config is no longer part of the public contract
This commit is contained in:
@@ -162,7 +162,7 @@ class NotifyVisitToWebHooksTest extends TestCase
|
||||
$this->em->reveal(),
|
||||
$this->logger->reveal(),
|
||||
new WebhookOptions(
|
||||
['visits_webhooks' => $webhooks, 'notify_orphan_visits_to_webhooks' => $notifyOrphanVisits],
|
||||
['webhooks' => $webhooks, 'notify_orphan_visits_to_webhooks' => $notifyOrphanVisits],
|
||||
),
|
||||
new ShortUrlDataTransformer(new ShortUrlStringifier([])),
|
||||
new AppOptions(['name' => 'Shlink', 'version' => '1.2.3']),
|
||||
|
||||
@@ -6,17 +6,17 @@ namespace ShlinkioTest\Shlink\Core\Util;
|
||||
|
||||
use Laminas\Diactoros\Response\RedirectResponse;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Shlinkio\Shlink\Core\Options\UrlShortenerOptions;
|
||||
use Shlinkio\Shlink\Core\Options\RedirectOptions;
|
||||
use Shlinkio\Shlink\Core\Util\RedirectResponseHelper;
|
||||
|
||||
class RedirectResponseHelperTest extends TestCase
|
||||
{
|
||||
private RedirectResponseHelper $helper;
|
||||
private UrlShortenerOptions $shortenerOpts;
|
||||
private RedirectOptions $shortenerOpts;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->shortenerOpts = new UrlShortenerOptions();
|
||||
$this->shortenerOpts = new RedirectOptions();
|
||||
$this->helper = new RedirectResponseHelper($this->shortenerOpts);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user