public function test_Should_GetValidationErrors() { $this->mockValidator->shouldReceive('errors')->once()->andReturn(new Illuminate\Support\MessageBag()); $form = new DeploymentForm($this->mockValidator, $this->mockProjectRepository, $this->mockDeployCommander); $result = $form->errors(); $this->assertEmpty($result); }