mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Fix API tests
This commit is contained in:
@@ -34,6 +34,7 @@ class ListShortUrlsTest extends ApiTestCase
|
|||||||
'title' => 'My cool title',
|
'title' => 'My cool title',
|
||||||
'crawlable' => true,
|
'crawlable' => true,
|
||||||
'forwardQuery' => true,
|
'forwardQuery' => true,
|
||||||
|
'hasRedirectRules' => false,
|
||||||
];
|
];
|
||||||
private const SHORT_URL_DOCS = [
|
private const SHORT_URL_DOCS = [
|
||||||
'shortCode' => 'ghi789',
|
'shortCode' => 'ghi789',
|
||||||
@@ -55,6 +56,7 @@ class ListShortUrlsTest extends ApiTestCase
|
|||||||
'title' => null,
|
'title' => null,
|
||||||
'crawlable' => false,
|
'crawlable' => false,
|
||||||
'forwardQuery' => true,
|
'forwardQuery' => true,
|
||||||
|
'hasRedirectRules' => false,
|
||||||
];
|
];
|
||||||
private const SHORT_URL_CUSTOM_SLUG_AND_DOMAIN = [
|
private const SHORT_URL_CUSTOM_SLUG_AND_DOMAIN = [
|
||||||
'shortCode' => 'custom-with-domain',
|
'shortCode' => 'custom-with-domain',
|
||||||
@@ -76,6 +78,7 @@ class ListShortUrlsTest extends ApiTestCase
|
|||||||
'title' => null,
|
'title' => null,
|
||||||
'crawlable' => false,
|
'crawlable' => false,
|
||||||
'forwardQuery' => true,
|
'forwardQuery' => true,
|
||||||
|
'hasRedirectRules' => false,
|
||||||
];
|
];
|
||||||
private const SHORT_URL_META = [
|
private const SHORT_URL_META = [
|
||||||
'shortCode' => 'def456',
|
'shortCode' => 'def456',
|
||||||
@@ -99,6 +102,7 @@ class ListShortUrlsTest extends ApiTestCase
|
|||||||
'title' => null,
|
'title' => null,
|
||||||
'crawlable' => false,
|
'crawlable' => false,
|
||||||
'forwardQuery' => true,
|
'forwardQuery' => true,
|
||||||
|
'hasRedirectRules' => true,
|
||||||
];
|
];
|
||||||
private const SHORT_URL_CUSTOM_SLUG = [
|
private const SHORT_URL_CUSTOM_SLUG = [
|
||||||
'shortCode' => 'custom',
|
'shortCode' => 'custom',
|
||||||
@@ -120,6 +124,7 @@ class ListShortUrlsTest extends ApiTestCase
|
|||||||
'title' => null,
|
'title' => null,
|
||||||
'crawlable' => true,
|
'crawlable' => true,
|
||||||
'forwardQuery' => false,
|
'forwardQuery' => false,
|
||||||
|
'hasRedirectRules' => false,
|
||||||
];
|
];
|
||||||
private const SHORT_URL_CUSTOM_DOMAIN = [
|
private const SHORT_URL_CUSTOM_DOMAIN = [
|
||||||
'shortCode' => 'ghi789',
|
'shortCode' => 'ghi789',
|
||||||
@@ -143,6 +148,7 @@ class ListShortUrlsTest extends ApiTestCase
|
|||||||
'title' => null,
|
'title' => null,
|
||||||
'crawlable' => false,
|
'crawlable' => false,
|
||||||
'forwardQuery' => true,
|
'forwardQuery' => true,
|
||||||
|
'hasRedirectRules' => false,
|
||||||
];
|
];
|
||||||
|
|
||||||
#[Test, DataProvider('provideFilteredLists')]
|
#[Test, DataProvider('provideFilteredLists')]
|
||||||
|
|||||||
Reference in New Issue
Block a user