Example #1
0
 /**
  * @covers FA\Dao\ImageDao::countImages
  */
 public function testCountImages()
 {
     $count = $this->dao->countImages();
     $this->assertInternalType('int', $count);
     $this->assertEquals(10, $count);
     $this->dao->delete(1);
     $this->dao->delete(2);
     $this->dao->delete(3);
     $this->dao->delete(4);
     $this->assertEquals(6, $this->dao->countImages());
 }
Example #2
0
 /**
  * Delete image
  *
  * @param  int  $day Project day (1-366)
  * @return bool True on success, false on failure
  */
 public function delete($day)
 {
     return $this->dao->delete($day);
 }