more tests for more coverage

This commit is contained in:
Spine
2025-08-07 16:03:09 +02:00
parent 8ab380066c
commit 7c0d9bebdf
7 changed files with 98 additions and 13 deletions
+16
View File
@@ -81,6 +81,22 @@ class ArtistTest extends TestCase {
$this->assertTrue($artist->isLocked(), 'artist-is-locked');
}
public function testArtistAPI(): void {
$manager = new Manager\Artist();
$artist = $manager->create('phpunit.' . randomString(12));
$this->artistIdList[] = $artist->id;
$_GET['req'] = 'artist';
$_GET['artist_id'] = $artist->id;
$this->assertEquals(
[
'ArtistID' => $artist->id(),
'Name' => $artist->name(),
],
new API\Artist([])->run(),
'artist-api',
);
}
public function testArtistRevision(): void {
$manager = new Manager\Artist();
$artist = $manager->create('phpunit.' . randomString(12));