mirror of https://github.com/kcal-app/kcal.git
30 lines
472 B
PHP
30 lines
472 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\JsonApi;
|
|
|
|
use App\Models\Recipe;
|
|
use Database\Factories\RecipeFactory;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
|
|
class RecipeApiTest extends JsonApiTestCase
|
|
{
|
|
use RefreshDatabase;
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function factory(): RecipeFactory
|
|
{
|
|
return Recipe::factory();
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function resourceName(): string
|
|
{
|
|
return 'recipes';
|
|
}
|
|
|
|
}
|