22 lines
598 B
PHP
22 lines
598 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Tests\Feature\Api;
|
|
|
|
use App\Support\Api\ApiResponse;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class Phase8ApiEnvelopeTest extends TestCase
|
|
{
|
|
public function test_api_response_class_exists(): void
|
|
{
|
|
$this->assertTrue(class_exists(ApiResponse::class));
|
|
}
|
|
|
|
public function test_route_inventory_fixture_exists(): void
|
|
{
|
|
$path = dirname(__DIR__, 3).'/storage/app/generated/api-route-inventory.json';
|
|
$this->assertFileExists($path);
|
|
$this->assertStringContainsString('api.v2', file_get_contents($path));
|
|
}
|
|
}
|