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:
@@ -35,7 +35,7 @@ class ResolveShortUrlActionTest extends TestCase
|
||||
|
||||
$request = (new ServerRequest())->withAttribute('shortCode', $shortCode);
|
||||
$response = $this->action->handle($request);
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertTrue(strpos($response->getBody()->getContents(), 'http://domain.com/foo/bar') > 0);
|
||||
self::assertEquals(200, $response->getStatusCode());
|
||||
self::assertTrue(strpos($response->getBody()->getContents(), 'http://domain.com/foo/bar') > 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user