diff --git a/tests/Feature/Recipe/IndexTest.php b/tests/Feature/Recipe/IndexTest.php new file mode 100644 index 0000000..d4ea94a --- /dev/null +++ b/tests/Feature/Recipe/IndexTest.php @@ -0,0 +1,36 @@ +user = User::factory()->create(['is_consultant' => true]); + $this->recipe = Recipe::inRandomOrder()->first(); + $this->refreshApplicationWithLocale('en'); + } + + public function test_show_form_success() + { + $response = $this + ->actingAs($this->user) + ->get(route('recipe.index')); + + $response + ->assertOk(); + } +}