assertValidSchema example

static::assertSame(200, $response->getStatusCode()print_r($response->getContent(), true));
    }

    public function testValidateStoreApiSchema(): void
    {
        $infoController = KernelLifecycleManager::getKernel()->getContainer()->get(StoreApiInfoController::class);

        $response = $infoController->info(new Request());
        $schema = $response->getContent();
        static::assertIsString($schema);

        $this->assertValidSchema($schema);
    }

    public function testValidateAdminApiSchema(): void
    {
        $infoController = KernelLifecycleManager::getKernel()->getContainer()->get(InfoController::class);

        $response = $infoController->info(new Request());
        $schema = $response->getContent();
        static::assertIsString($schema);

        $this->assertValidSchema($schema);
    }
Home | Imprint | This part of the site doesn't use cookies.