setUser() public method

Set the user
public setUser ( string $user ) : Image
$user string The user
return Image
Example #1
0
 /**
  * @covers Imbo\Model\Image::setUser
  * @covers Imbo\Model\Image::getUser
  */
 public function testCanSetAndGetTheUser()
 {
     $this->assertNull($this->image->getUser());
     $this->assertSame($this->image, $this->image->setUser('christer'));
     $this->assertSame('christer', $this->image->getUser());
 }