PHP Class Backend\Modules\Extensions\Tests\UploadThemeTest

Inheritance: extends common\WebTestCase
Afficher le fichier Open project: forkcms/forkcms

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
setUp ( ) : void
tearDown ( ) : void

Private Methods

Méthode Description
getSampleInfoXmlContents ( string $themeName ) : string
submitThemeUploadForm ( ) : void

Method Details

setUp() protected méthode

protected setUp ( ) : void
Résultat void

tearDown() protected méthode

protected tearDown ( ) : void
Résultat void

testUploadThemeNoParentFolder() public méthode

Test if we can upload a theme with a zip that contains only the files (not wrapped in a parent folder).
public testUploadThemeNoParentFolder ( ) : void
Résultat void

testUploadThemeZipGithub() public méthode

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

testUploadThemeZipWithoutInfoFile() public méthode

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