Exemple #1
0
 public function testDelete()
 {
     $list = new Gallery();
     $list->fromJson(self::$outputDir . self::$jsonName);
     $item = new GalleryItem("other_desc", "year", "pathToFull", "pathToThumb");
     $list->add($item);
     $this->assertTrue($list->deleteByName($item->getName()));
     $this->assertFalse($list->exists($item->getName()));
 }