/** * Set the Description field of the SmartPlaylist, then compares with the given one. * * @depends testDeleteVideos * @param Playlist $playlist * @return Playlist */ public function testSetDescriptionToPlaylist(Playlist $playlist) { $playlist->setDescription($this->generateRandomString(18)); $description = $playlist->getDescription(); $playlist = $this->cms->updatePlaylist($playlist); $returnedDescription = $playlist->getDescription(); $this->assertEquals($description, $returnedDescription); return $playlist; }