17 lines
348 B
PHP
17 lines
348 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Tests;
|
||
|
|
||
|
use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase;
|
||
|
|
||
|
class OrdersTest extends ApiTestCase
|
||
|
{
|
||
|
public function testSomething(): void
|
||
|
{
|
||
|
$response = static::createClient()->request('GET', '/');
|
||
|
|
||
|
$this->assertResponseIsSuccessful();
|
||
|
$this->assertJsonContains(['@id' => '/']);
|
||
|
}
|
||
|
}
|