Fix DeleteSongs test.

This commit is contained in:
John Maguire 2011-05-18 15:05:19 +00:00
parent 58ea8f5b78
commit 4ec89102c8
1 changed files with 3 additions and 3 deletions

View File

@ -288,10 +288,10 @@ TEST_F(SingleSong, DeleteSongs) {
EXPECT_EQ("Title", songs_deleted[0].title());
EXPECT_EQ(1, songs_deleted[0].id());
// Check we can't retreive that song any more
// Check the song is marked as deleted.
Song song = backend_->GetSongById(1);
EXPECT_FALSE(song.is_valid());
EXPECT_EQ(-1, song.id());
EXPECT_TRUE(song.is_valid());
EXPECT_TRUE(song.is_unavailable());
// And the artist or album shouldn't show up either
QStringList artists = backend_->GetAllArtists();