more tests for more coverage

This commit is contained in:
Spine
2025-05-07 20:31:16 +00:00
parent 8ab380066c
commit 7c0d9bebdf
7 changed files with 98 additions and 13 deletions

View File

@@ -61,9 +61,14 @@ class RequestTest extends TestCase {
),
'request-add-artist-role'
);
$this->assertInstanceOf(ArtistRole\Request::class, $this->request->artistRole(), 'request-artist-role');
$this->assertInstanceOf(ArtistRole\Request::class, $this->request->artistRole(), 'request-has-artist-role');
$this->assertInstanceOf(Request\LogCue::class, $this->request->logCue(), 'request-log-cue');
$this->assertStringContainsString('+', $this->request->urlencodeArtist(), 'request-urlencode-artist');
$this->assertEquals(
[ARTIST_MAIN => [$artistName]],
$this->request->artistRole()->roleNameList(),
'request-artist-role-name-list',
);
$this->assertCount(0, $this->request->tagNameList());
$nameList = ['phpunit.' . randomString(6), 'phpunit.' . randomString(6)];