update: more tests + sail docker-compose

This commit is contained in:
HDVinnie
2023-08-14 12:20:57 -04:00
parent 836fd2777c
commit 0854104639
78 changed files with 1015 additions and 9408 deletions
@@ -20,7 +20,7 @@ beforeEach(function (): void {
test('authorize', function (): void {
$actual = $this->subject->authorize();
$this->assertTrue($actual);
expect($actual)->toBeTrue();
});
test('rules', function (): void {
@@ -123,11 +123,11 @@ test('rules', function (): void {
test('messages', function (): void {
$actual = $this->subject->messages();
$this->assertEquals([
expect($actual)->toEqual([
'igdb.in' => "The IGBB ID must be 0 if the media doesn't exist on IGDB or you're not uploading a game.",
'tmdb.in' => "The TMDB ID must be 0 if the media doesn't exist on TMDB or you're not uploading a tv show or movie.",
'imdb.in' => "The IMDB ID must be 0 if the media doesn't exist on IMDB or you're not uploading a tv show or movie.",
'tvdb.in' => "The TVDB ID must be 0 if the media doesn't exist on TVDB or you're not uploading a tv show.",
'mal.in' => "The MAL ID must be 0 if the media doesn't exist on MAL or you're not uploading a tv or movie.",
], $actual);
]);
});