Fixed API tests

This commit is contained in:
Alejandro Celaya 2022-12-16 10:53:44 +01:00
parent 936e5b3b86
commit 1f66ec2af5

View File

@ -18,6 +18,11 @@ class ListShortUrlsTest extends ApiTestCase
'longUrl' => 'https://shlink.io', 'longUrl' => 'https://shlink.io',
'dateCreated' => '2018-05-01T00:00:00+00:00', 'dateCreated' => '2018-05-01T00:00:00+00:00',
'visitsCount' => 3, 'visitsCount' => 3,
'visitsSummary' => [
'total' => 3,
'nonBots' => 3,
'bots' => 0,
],
'tags' => ['foo'], 'tags' => ['foo'],
'meta' => [ 'meta' => [
'validSince' => null, 'validSince' => null,
@ -35,6 +40,11 @@ class ListShortUrlsTest extends ApiTestCase
'longUrl' => 'https://shlink.io/documentation/', 'longUrl' => 'https://shlink.io/documentation/',
'dateCreated' => '2018-05-01T00:00:00+00:00', 'dateCreated' => '2018-05-01T00:00:00+00:00',
'visitsCount' => 2, 'visitsCount' => 2,
'visitsSummary' => [
'total' => 2,
'nonBots' => 2,
'bots' => 0,
],
'tags' => [], 'tags' => [],
'meta' => [ 'meta' => [
'validSince' => null, 'validSince' => null,
@ -52,6 +62,11 @@ class ListShortUrlsTest extends ApiTestCase
'longUrl' => 'https://google.com', 'longUrl' => 'https://google.com',
'dateCreated' => '2018-10-20T00:00:00+00:00', 'dateCreated' => '2018-10-20T00:00:00+00:00',
'visitsCount' => 0, 'visitsCount' => 0,
'visitsSummary' => [
'total' => 0,
'nonBots' => 0,
'bots' => 0,
],
'tags' => [], 'tags' => [],
'meta' => [ 'meta' => [
'validSince' => null, 'validSince' => null,
@ -71,6 +86,11 @@ class ListShortUrlsTest extends ApiTestCase
. '/acmailer-7-0-the-most-important-release-in-a-long-time/', . '/acmailer-7-0-the-most-important-release-in-a-long-time/',
'dateCreated' => '2019-01-01T00:00:10+00:00', 'dateCreated' => '2019-01-01T00:00:10+00:00',
'visitsCount' => 2, 'visitsCount' => 2,
'visitsSummary' => [
'total' => 2,
'nonBots' => 1,
'bots' => 1,
],
'tags' => ['bar', 'foo'], 'tags' => ['bar', 'foo'],
'meta' => [ 'meta' => [
'validSince' => '2020-05-01T00:00:00+00:00', 'validSince' => '2020-05-01T00:00:00+00:00',
@ -88,6 +108,11 @@ class ListShortUrlsTest extends ApiTestCase
'longUrl' => 'https://shlink.io', 'longUrl' => 'https://shlink.io',
'dateCreated' => '2019-01-01T00:00:20+00:00', 'dateCreated' => '2019-01-01T00:00:20+00:00',
'visitsCount' => 0, 'visitsCount' => 0,
'visitsSummary' => [
'total' => 0,
'nonBots' => 0,
'bots' => 0,
],
'tags' => [], 'tags' => [],
'meta' => [ 'meta' => [
'validSince' => null, 'validSince' => null,
@ -107,6 +132,11 @@ class ListShortUrlsTest extends ApiTestCase
. '/considerations-to-properly-use-open-source-software-projects/', . '/considerations-to-properly-use-open-source-software-projects/',
'dateCreated' => '2019-01-01T00:00:30+00:00', 'dateCreated' => '2019-01-01T00:00:30+00:00',
'visitsCount' => 0, 'visitsCount' => 0,
'visitsSummary' => [
'total' => 0,
'nonBots' => 0,
'bots' => 0,
],
'tags' => ['foo'], 'tags' => ['foo'],
'meta' => [ 'meta' => [
'validSince' => null, 'validSince' => null,