public function test_Should_PassToValidate_When_NameFieldAndBodyFieldAreValid() { $input = ['name' => 'Recipe 1', 'description' => '', 'body' => '<?php $x = 1;']; $form = new RecipeFormLaravelValidator($this->app['validator']); $result = $form->with($input)->passes(); $errors = $form->errors(); $this->assertTrue($result, 'Expected validation to succeed.'); $this->assertEmpty($errors); }