PHP Класс Bolt\Tests\Controller\Async\FilesystemManagerTest

Автор: Gawain Lynch ([email protected])
Наследование: extends Bolt\Tests\Controller\ControllerUnitTest
Показать файл Открыть проект

Открытые методы

Метод Описание
restoreFileList ( ) Remove any files added during the test
storeFileList ( ) Store the list of files in the files folder so we can delete any added files after we're done testing
testBrowse ( )
testCreateFile ( )
testCreateFolder ( )
testDeleteFile ( )
testDuplicateFile ( ) Duplicating a file five times should create FILENAME_copy1-5.EXT. This should work for both regular filenames and dotfiles.
testFileBrowser ( )
testFilesAutoComplete ( )
testInvalidRename ( ) Test the error handling when attempting to rename non existent files and folders and when attemtping to rename to a filename that already exists.
testRemoveFolder ( )
testRename ( ) Test renaming both files and folders, since the controller actions have the same signature and output

Защищенные методы

Метод Описание
controller ( ) : FilesystemManager

Приватные методы

Метод Описание
createObject ( string $object, string $name )
renameObject ( string $object, string $old, string $new ) : Symfony\Component\HttpFoundation\JsonResponse

Описание методов

controller() защищенный Метод

protected controller ( ) : FilesystemManager
Результат Bolt\Controller\Async\FilesystemManager

restoreFileList() публичный Метод

Remove any files added during the test
public restoreFileList ( )

storeFileList() публичный Метод

Store the list of files in the files folder so we can delete any added files after we're done testing
public storeFileList ( )

testBrowse() публичный Метод

public testBrowse ( )

testCreateFile() публичный Метод

public testCreateFile ( )

testCreateFolder() публичный Метод

public testCreateFolder ( )

testDeleteFile() публичный Метод

public testDeleteFile ( )

testDuplicateFile() публичный Метод

Duplicating a file five times should create FILENAME_copy1-5.EXT. This should work for both regular filenames and dotfiles.
public testDuplicateFile ( )

testFileBrowser() публичный Метод

public testFileBrowser ( )

testFilesAutoComplete() публичный Метод

testInvalidRename() публичный Метод

Test the error handling when attempting to rename non existent files and folders and when attemtping to rename to a filename that already exists.
public testInvalidRename ( )

testRemoveFolder() публичный Метод

public testRemoveFolder ( )

testRename() публичный Метод

Test renaming both files and folders, since the controller actions have the same signature and output
public testRename ( )