mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Load specific env file when running API tests
This commit is contained in:
@@ -31,10 +31,7 @@ class ListShortUrlsActionTest extends TestCase
|
||||
$this->service = $this->createMock(ShortUrlListServiceInterface::class);
|
||||
|
||||
$this->action = new ListShortUrlsAction($this->service, new ShortUrlDataTransformer(
|
||||
new ShortUrlStringifier(new UrlShortenerOptions(domain: [
|
||||
'hostname' => 's.test',
|
||||
'schema' => 'https',
|
||||
])),
|
||||
new ShortUrlStringifier(new UrlShortenerOptions('s.test')),
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,10 +25,7 @@ class DomainVisitsActionTest extends TestCase
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->visitsHelper = $this->createMock(VisitsStatsHelperInterface::class);
|
||||
$this->action = new DomainVisitsAction(
|
||||
$this->visitsHelper,
|
||||
new UrlShortenerOptions(domain: ['hostname' => 'the_default.com']),
|
||||
);
|
||||
$this->action = new DomainVisitsAction($this->visitsHelper, new UrlShortenerOptions('the_default.com'));
|
||||
}
|
||||
|
||||
#[Test, DataProvider('provideDomainAuthorities')]
|
||||
|
||||
@@ -24,9 +24,7 @@ class DropDefaultDomainFromRequestMiddlewareTest extends TestCase
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->next = $this->createMock(RequestHandlerInterface::class);
|
||||
$this->middleware = new DropDefaultDomainFromRequestMiddleware(
|
||||
new UrlShortenerOptions(domain: ['hostname' => 's.test']),
|
||||
);
|
||||
$this->middleware = new DropDefaultDomainFromRequestMiddleware(new UrlShortenerOptions('s.test'));
|
||||
}
|
||||
|
||||
#[Test, DataProvider('provideQueryParams')]
|
||||
|
||||
Reference in New Issue
Block a user