Пример #1
0
 /**
  * Tests that we can process and read and delete a photo
  * 
  * @return null
  */
 public function test_do_it()
 {
     $photo = new Model_Vendo_Photo();
     $photo->file = DOCROOT . 'media/images/grid.png';
     $photo->save();
     $path = $photo->path() . $photo->filename;
     $this->assertFalse($photo->id === NULL);
     $this->assertTrue(file_exists($path));
     $photo->delete();
     $this->assertFalse(file_exists($path));
 }