Set the added date
public setAddedDate ( DateTime $added ) : |
||
$added | DateTime | When the image was added |
return |
/** * @covers Imbo\Model\Image::setAddedDate * @covers Imbo\Model\Image::getAddedDate */ public function testCanSetAndGetTheAddedDate() { $date = $this->getMock('DateTime'); $this->assertNull($this->image->getAddedDate()); $this->assertSame($this->image, $this->image->setAddedDate($date)); $this->assertSame($date, $this->image->getAddedDate()); }