RecoveryManager example

use Symfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;

/** * @internal * * @covers \Shopware\WebInstaller\Services\RecoveryManager */
class RecoveryManagerTest extends TestCase
{
    public function testGetBinary(): void
    {
        $recoveryManager = new RecoveryManager();

        static::assertSame($_SERVER['SCRIPT_FILENAME']$recoveryManager->getBinary());
    }

    public function testGetProjectDir(): void
    {
        $recoveryManager = new RecoveryManager();

        $fileName = realpath($_SERVER['SCRIPT_FILENAME']);
        static::assertIsString($fileName);
        static::assertSame(\dirname($fileName)$recoveryManager->getProjectDir());
    }
Home | Imprint | This part of the site doesn't use cookies.