PHP Class Bolt\Tests\Controller\Async\FilesystemManagerTest

Author: Gawain Lynch ([email protected])
Datei anzeigen Open project: bolt/bolt

Public Methods

Method Description
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

Protected Methods

Method Description
controller ( ) : FilesystemManager

Private Methods

Method Description
createObject ( string $object, string $name )
renameObject ( string $object, string $old, string $new ) : Symfony\Component\HttpFoundation\JsonResponse

Method Details

controller() protected method

protected controller ( ) : FilesystemManager
return Bolt\Controller\Async\FilesystemManager

restoreFileList() public method

Remove any files added during the test
public restoreFileList ( )

storeFileList() public method

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 method

public testBrowse ( )

testCreateFile() public method

public testCreateFile ( )

testCreateFolder() public method

public testCreateFolder ( )

testDeleteFile() public method

public testDeleteFile ( )

testDuplicateFile() public method

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

testFileBrowser() public method

public testFileBrowser ( )

testFilesAutoComplete() public method

testInvalidRename() public method

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 method

public testRemoveFolder ( )

testRename() public method

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