mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-22 00:47:25 -06:00
Fixed API tests
This commit is contained in:
parent
936e5b3b86
commit
1f66ec2af5
@ -18,6 +18,11 @@ class ListShortUrlsTest extends ApiTestCase
|
||||
'longUrl' => 'https://shlink.io',
|
||||
'dateCreated' => '2018-05-01T00:00:00+00:00',
|
||||
'visitsCount' => 3,
|
||||
'visitsSummary' => [
|
||||
'total' => 3,
|
||||
'nonBots' => 3,
|
||||
'bots' => 0,
|
||||
],
|
||||
'tags' => ['foo'],
|
||||
'meta' => [
|
||||
'validSince' => null,
|
||||
@ -35,6 +40,11 @@ class ListShortUrlsTest extends ApiTestCase
|
||||
'longUrl' => 'https://shlink.io/documentation/',
|
||||
'dateCreated' => '2018-05-01T00:00:00+00:00',
|
||||
'visitsCount' => 2,
|
||||
'visitsSummary' => [
|
||||
'total' => 2,
|
||||
'nonBots' => 2,
|
||||
'bots' => 0,
|
||||
],
|
||||
'tags' => [],
|
||||
'meta' => [
|
||||
'validSince' => null,
|
||||
@ -52,6 +62,11 @@ class ListShortUrlsTest extends ApiTestCase
|
||||
'longUrl' => 'https://google.com',
|
||||
'dateCreated' => '2018-10-20T00:00:00+00:00',
|
||||
'visitsCount' => 0,
|
||||
'visitsSummary' => [
|
||||
'total' => 0,
|
||||
'nonBots' => 0,
|
||||
'bots' => 0,
|
||||
],
|
||||
'tags' => [],
|
||||
'meta' => [
|
||||
'validSince' => null,
|
||||
@ -71,6 +86,11 @@ class ListShortUrlsTest extends ApiTestCase
|
||||
. '/acmailer-7-0-the-most-important-release-in-a-long-time/',
|
||||
'dateCreated' => '2019-01-01T00:00:10+00:00',
|
||||
'visitsCount' => 2,
|
||||
'visitsSummary' => [
|
||||
'total' => 2,
|
||||
'nonBots' => 1,
|
||||
'bots' => 1,
|
||||
],
|
||||
'tags' => ['bar', 'foo'],
|
||||
'meta' => [
|
||||
'validSince' => '2020-05-01T00:00:00+00:00',
|
||||
@ -88,6 +108,11 @@ class ListShortUrlsTest extends ApiTestCase
|
||||
'longUrl' => 'https://shlink.io',
|
||||
'dateCreated' => '2019-01-01T00:00:20+00:00',
|
||||
'visitsCount' => 0,
|
||||
'visitsSummary' => [
|
||||
'total' => 0,
|
||||
'nonBots' => 0,
|
||||
'bots' => 0,
|
||||
],
|
||||
'tags' => [],
|
||||
'meta' => [
|
||||
'validSince' => null,
|
||||
@ -107,6 +132,11 @@ class ListShortUrlsTest extends ApiTestCase
|
||||
. '/considerations-to-properly-use-open-source-software-projects/',
|
||||
'dateCreated' => '2019-01-01T00:00:30+00:00',
|
||||
'visitsCount' => 0,
|
||||
'visitsSummary' => [
|
||||
'total' => 0,
|
||||
'nonBots' => 0,
|
||||
'bots' => 0,
|
||||
],
|
||||
'tags' => ['foo'],
|
||||
'meta' => [
|
||||
'validSince' => null,
|
||||
|
Loading…
Reference in New Issue
Block a user