Exemple #1
0
 public function test_Should_GetValidationErrors()
 {
     $this->mockValidator->shouldReceive('errors')->once()->andReturn(new Illuminate\Support\MessageBag());
     $form = new ServerForm($this->mockValidator, $this->mockServerRepository);
     $result = $form->errors();
     $this->assertEmpty($result);
 }