PhpConfigController example

use Twig\Environment;

/** * @internal * * @covers \Shopware\WebInstaller\Controller\PhpConfigController */
class PhpConfigControllerTest extends TestCase
{
    public function testIndex(): void
    {
        $controller = new PhpConfigController($this->createMock(PhpBinaryFinder::class)$this->createMock(RecoveryManager::class));
        $controller->setContainer($this->getContainer());

        $request = new Request();
        $request->setSession(new Session(new MockArraySessionStorage()));

        $response = $controller->index($request);

        static::assertSame(Response::HTTP_OK, $response->getStatusCode());
    }

    public function testSetConfigOnUpdate(): void
    {
Home | Imprint | This part of the site doesn't use cookies.