HealthCheckController example

use Symfony\Component\HttpFoundation\Response;

/** * @internal * * @covers \Shopware\Core\Framework\Api\Controller\HealthCheckController */
class HealthCheckControllerTest extends TestCase
{
    public function testCheck(): void
    {
        $controller = new HealthCheckController();
        $response = $controller->check();

        static::assertSame(Response::HTTP_OK, $response->getStatusCode());
        static::assertFalse($response->isCacheable());
    }
}
Home | Imprint | This part of the site doesn't use cookies.