Backend\Modules\Extensions\Tests\UploadThemeTest::tearDown PHP Method

tearDown() protected method

protected tearDown ( ) : void
return void
    protected function tearDown()
    {
        $fs = new Filesystem();
        // Clear the $_FILES
        $_FILES = [];
        // Remove the generated zip file
        if ($this->fileName !== null && file_exists("{$this->fileName}.zip")) {
            $fs->remove("{$this->fileName}.zip");
        }
        // Remove the uploaded theme folder
        $fs->remove(FRONTEND_PATH . '/Themes/' . self::THEME_NAME);
        $this->logout();
        parent::tearDown();
    }