Пример #1
0
 /**
  * Should use the error message bag to give errors for a field.
  */
 public function testErrorsFor()
 {
     $errors = [$this->generator()->anyString(), $this->generator()->anyString()];
     $fieldName = $this->generator()->anyString();
     $this->errors->shouldReceive('get')->with($fieldName)->andReturn($errors);
     $this->assertSame($errors, $this->replyComposer->errorsFor($fieldName));
 }