/** * @covers Imbo\Model\Images::setFields * @covers Imbo\Model\Images::getFields */ public function testCanSetAndGetFields() { $this->assertSame(array(), $this->model->getFields()); $this->assertSame($this->model, $this->model->setFields(array('width', 'height'))); $this->assertSame(array('width', 'height'), $this->model->getFields()); }
/** * @covers Imbo\Model\Images::setFields * @covers Imbo\Model\Images::getFields */ public function testCanSetAndGetFields() { $this->assertSame([], $this->model->getFields()); $this->assertSame($this->model, $this->model->setFields(['width', 'height'])); $this->assertSame(['width', 'height'], $this->model->getFields()); }