public function testDelete() { $name = pathinfo($this->inputImageName, PATHINFO_FILENAME); $fullsrc = $this->config['images']['full']['path'] . $name . '.' . $this->config['images']['full']['ext']; $lowsrc = $this->config['images']['low']['path'] . $name . '.' . $this->config['images']['low']['ext']; $handler = new GalleryItemCreator(); $handler->setFullImageProps($this->config['images']['full']); $handler->setLowImageProps($this->config['images']['low']); $item = $handler->create($this->inputDir . $this->inputImageName); $this->assertFileExists(ROOT . $fullsrc); $this->assertFileExists(ROOT . $lowsrc); $handler->delete($item); $this->assertFileNotExists(ROOT . $fullsrc); $this->assertFileNotExists(ROOT . $lowsrc); }