ClearBowl/api/tests/Feature/RecipesTest.php

20 lines
402 B
PHP
Raw Normal View History

2020-01-19 20:21:41 +01:00
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class RecipesTest extends TestCase
{
use RefreshDatabase;
public function testGetRecipes()
{
$response = $this->get('http://localhost:8000/api/recipe');
$response->assertStatus(200);
$response->assertJsonStructure(['success', 'data' => ['recipes']]);
}
}