mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Invoke PHPUnit's assertions statically
This commit is contained in:
@@ -33,7 +33,7 @@ class GlobalVisitsActionTest extends TestCase
|
||||
$resp = $this->action->handle(ServerRequestFactory::fromGlobals());
|
||||
$payload = $resp->getPayload();
|
||||
|
||||
$this->assertEquals($payload, ['visits' => $stats]);
|
||||
self::assertEquals($payload, ['visits' => $stats]);
|
||||
$getStats->shouldHaveBeenCalledOnce();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ class ShortUrlVisitsActionTest extends TestCase
|
||||
)->shouldBeCalledOnce();
|
||||
|
||||
$response = $this->action->handle((new ServerRequest())->withAttribute('shortCode', $shortCode));
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
self::assertEquals(200, $response->getStatusCode());
|
||||
}
|
||||
|
||||
/** @test */
|
||||
@@ -60,6 +60,6 @@ class ShortUrlVisitsActionTest extends TestCase
|
||||
'itemsPerPage' => '10',
|
||||
]),
|
||||
);
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
self::assertEquals(200, $response->getStatusCode());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ class TagVisitsActionTest extends TestCase
|
||||
|
||||
$response = $this->action->handle((new ServerRequest())->withAttribute('tag', $tag));
|
||||
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
self::assertEquals(200, $response->getStatusCode());
|
||||
$getVisits->shouldHaveBeenCalledOnce();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user