setImageIdentifier() public method

Set the image identifier
public setImageIdentifier ( string $imageIdentifier ) : Error
$imageIdentifier string The image identifier to set
return Error
Beispiel #1
0
 /**
  * @covers Imbo\Model\Error::getData
  */
 public function testGetData()
 {
     $date = new DateTime();
     $this->model->setHttpCode(404);
     $this->model->setErrorMessage('message');
     $this->model->setDate($date);
     $this->model->setImboErrorCode(100);
     $this->model->setImageIdentifier('identifier');
     $this->assertSame(['httpCode' => 404, 'errorMessage' => 'message', 'date' => $date, 'imboErrorCode' => 100, 'imageIdentifier' => 'identifier'], $this->model->getData());
 }
Beispiel #2
0
 /**
  * @covers Imbo\Model\Error::getImageIdentifier
  * @covers Imbo\Model\Error::setImageIdentifier
  */
 public function testCanSetAndGetImageIdentifier()
 {
     $this->assertNull($this->model->getImageIdentifier());
     $this->assertSame($this->model, $this->model->setImageIdentifier('identifier'));
     $this->assertSame('identifier', $this->model->getImageIdentifier());
 }