Invoke PHPUnit's assertions statically

This commit is contained in:
Daniel Londero
2020-10-04 00:35:14 +02:00
parent d426dbc684
commit 065d314608
99 changed files with 567 additions and 567 deletions

View File

@@ -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();
}
}

View File

@@ -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());
}
}

View File

@@ -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();
}
}