Skip to content

A self-hosted media server and file management system

fix: lyrics update test for missing video does not accept 404

aminnausin6926caf58abe
diff --git a/tests/Feature/MetadataControllerTest.php b/tests/Feature/MetadataControllerTest.php
index aa9d74ba..383f8fe3 100644
--- a/tests/Feature/MetadataControllerTest.php
+++ b/tests/Feature/MetadataControllerTest.php
@@ -87,7 +87,7 @@ class MetadataControllerTest extends TestCase {
];
$this->patchJson("/api/metadata/{$metadata->id}/lyrics", $payload)
- ->assertStatus(500)
- ->assertJsonPath('message', 'Unable to edit song. Error: Song does not exist');
+ ->assertStatus(404)
+ ->assertJsonPath('message', 'Song does not exist');
}
}