Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
PattonYin committed Dec 6, 2023
1 parent 8fc67bc commit bec9aed
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,24 @@ Therefore, when writing or updating these tests, it's crucial to ensure that the
In other words, if you're writing a test to update or delete a song that you've just inserted into the database for testing purposes, you need to know the song_id that was assigned to that song and use it in your test. If the song_id in the test doesn't match any song_id in the database, the test will fail because it can't find the song it's supposed to update or delete.

```
'id' => '53',
'username' => 'test_admin',
'song_artist' => 'test_admin',
'song_name' => 'admin_song',
'song_rating' => '4',
public function testUpdateSong(): void
{
...
'id' => '53',
'username' => 'test_admin',
'song_artist' => 'test_admin',
'song_name' => 'admin_song',
'song_rating' => '4',
...
}
```

```
'id' => '53',
'username' => 'test_admin',
public function testDeleteSong(): void
{
...
'id' => '53',
'username' => 'test_admin',
...
}
```

0 comments on commit bec9aed

Please sign in to comment.