PHP Class HM\BackUpWordPress\Test_Backup_Path

See also: Path
Inheritance: extends HM_Backup_UnitTestCase
Datei anzeigen Open project: humanmade/backupwordpress

Public Methods

Method Description
setUp ( )
tearDown ( )
testCustomPath ( ) Setting a writable custom path should override everything
testDefaultPath ( ) By default the path should be the default path
testExistingPath ( ) If there are 1 or more existing paths then the first one of those should be used
testExistingPaths ( ) If there are several existing paths this should find all of them
testFallbackPath ( ) If the default path is unwritable then it should fallback to the fallback path
testIsPathProtected ( ) Test that the backup path is correctly protected
testMergeExistingPath ( ) Test that backups are correctly merged from multiple existing backup paths
testUnwritableCustomPath ( ) Unwritable or otherwide broken custom paths should be ignored
test_cleanup ( )

Private Methods

Method Description
generate_additional_paths ( ) Create multiple backup paths for testing purposes

Method Details

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testCustomPath() public method

Setting a writable custom path should override everything
public testCustomPath ( )

testDefaultPath() public method

By default the path should be the default path
public testDefaultPath ( )

testExistingPath() public method

If there are 1 or more existing paths then the first one of those should be used
public testExistingPath ( )

testExistingPaths() public method

If there are several existing paths this should find all of them
public testExistingPaths ( )

testFallbackPath() public method

If the default path is unwritable then it should fallback to the fallback path
public testFallbackPath ( )

testIsPathProtected() public method

Test that the backup path is correctly protected
public testIsPathProtected ( )

testMergeExistingPath() public method

Test that backups are correctly merged from multiple existing backup paths

testUnwritableCustomPath() public method

Unwritable or otherwide broken custom paths should be ignored

test_cleanup() public method

public test_cleanup ( )