PHP Class Backend\Modules\Extensions\Tests\UploadThemeTest

Inheritance: extends common\WebTestCase
Datei anzeigen Open project: forkcms/forkcms

Public Methods

Method Description
testUploadThemeNoParentFolder ( ) : void Test if we can upload a theme with a zip that contains only the files (not wrapped in a parent folder).
testUploadThemeZipGithub ( ) : void Test if we can upload a theme with a zip that contains a subfolder containing the themefiles.
testUploadThemeZipWithoutInfoFile ( ) : void Test that we cannot upload a theme without info.xml file

Protected Methods

Method Description
setUp ( ) : void
tearDown ( ) : void

Private Methods

Method Description
getSampleInfoXmlContents ( string $themeName ) : string
submitThemeUploadForm ( ) : void

Method Details

setUp() protected method

protected setUp ( ) : void
return void

tearDown() protected method

protected tearDown ( ) : void
return void

testUploadThemeNoParentFolder() public method

Test if we can upload a theme with a zip that contains only the files (not wrapped in a parent folder).

testUploadThemeZipGithub() public method

Test if we can upload a theme with a zip that contains a subfolder containing the themefiles.
public testUploadThemeZipGithub ( ) : void
return void

testUploadThemeZipWithoutInfoFile() public method

Test that we cannot upload a theme without info.xml file