Exemplo n.º 1
0
 public function testPut()
 {
     $picture = new Picture();
     $picture->setId(1);
     $picture->setTitle('announcement_1_1');
     $picture->setPath('/announcement/original/');
     $picture->setAlternative('Un texte alternatif modifié');
     $picture->setIdAnnouncement(10);
     $picture->setExtension('gif');
     $pictureMapper = new PictureMapper();
     $pictureMapper->setId(1);
     $pictureMapper->updatePicture($picture);
     $this->assertEquals($picture, $pictureMapper->selectPicture());
 }