mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-17 00:22:10 +03:00
21 lines
582 B
PHP
21 lines
582 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace ShlinkioApiTest\Shlink\Rest\Action;
|
|
|
|
use Shlinkio\Shlink\TestUtils\ApiTest\ApiTestCase;
|
|
|
|
class GlobalVisitsActionTest extends ApiTestCase
|
|
{
|
|
/** @test */
|
|
public function returnsExpectedVisitsStats(): void
|
|
{
|
|
$resp = $this->callApiWithKey(self::METHOD_GET, '/visits');
|
|
$payload = $this->getJsonResponsePayload($resp);
|
|
|
|
self::assertArrayHasKey('visits', $payload);
|
|
self::assertArrayHasKey('visitsCount', $payload['visits']);
|
|
self::assertEquals(7, $payload['visits']['visitsCount']);
|
|
}
|
|
}
|