Set the updated date
public setUpdatedDate ( DateTime $updated ) : |
||
$updated | DateTime | When the image was updated |
Результат |
/** * @covers Imbo\Model\Image::setUpdatedDate * @covers Imbo\Model\Image::getUpdatedDate */ public function testCanSetAndGetTheUpdatedDate() { $date = $this->getMock('DateTime'); $this->assertNull($this->image->getUpdatedDate()); $this->assertSame($this->image, $this->image->setUpdatedDate($date)); $this->assertSame($date, $this->image->getUpdatedDate()); }