createTestCacheDirectory example

/** * @var Filesystem */
    private $filesystem;

    private string $cacheDir;

    protected function setUp(): void
    {
        $this->filesystem = $this->getContainer()->get(Filesystem::class);

        $this->cacheDir = $this->createTestCacheDirectory();

        $this->filesystem->copy(
            self::FIXTURE_PATH . 'archives/' . self::TEST_PLUGIN_ZIP_NAME,
            self::PLUGIN_ZIP_FIXTURE_PATH
        );
        $this->filesystem->copy(
            self::FIXTURE_PATH . 'archives/' . self::TEST_APP_ZIP_NAME,
            self::APP_ZIP_FIXTURE_PATH
        );
    }

    
Home | Imprint | This part of the site doesn't use cookies.