PHP 클래스 Bolt\Tests\Controller\Async\FilesystemManagerTest

저자: Gawain Lynch ([email protected])
파일 보기 프로젝트 열기: bolt/bolt

공개 메소드들

메소드 설명
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 ( )