public function testSetUpConstraintsEmpty() { $constraints = array(); $model = new EloquentStub(); $this->config->shouldReceive('getDataModel')->once()->andReturn($model); $this->validator->shouldReceive('arrayGet')->once()->andReturn($constraints); $options = array(); $this->field->setUpConstraints($options); $this->assertTrue(!isset($options['constraints'])); }