PHP Class HM\BackUpWordPress\Site_Size_Tests

Inheritance: extends HM_Backup_UnitTestCase
Show file Open project: humanmade/backupwordpress

Public Methods

Method Description
setUp ( )
tearDown ( )
test_file_size_excluded_directly ( ) File is excluded directly (either in the root or any non-excluded sub-directory).
test_file_size_excluded_via_parent_directory ( ) File is excluded as a result of being in an excluded directory.
test_file_size_not_excluded_directly ( ) File is NOT excluded directly (either in the root or any non-excluded sub-directory).
test_filesize_excludes ( )
test_is_site_cached ( )
test_lock ( )
test_old_cache_is_cleared ( )
test_rebuild_directory_filesizes ( )
test_site_size_database ( )
test_site_size_file ( )
test_site_size_formatted ( )
test_site_size_with_filescanner_complete_equals_database_plus_files ( )
test_site_size_without_filescanner_complete_equals_database ( )

Method Details

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

test_file_size_excluded_directly() public method

Main test: Site_Size->filesize( $file ) Expected: file size should be 0.

test_file_size_excluded_via_parent_directory() public method

Main test: Site_Size->filesize( $file ) Expected: file size should be 0.

test_file_size_not_excluded_directly() public method

Main test: Site_Size->filesize( $file ) Expected: file size should be what it is.

test_filesize_excludes() public method

test_is_site_cached() public method

public test_is_site_cached ( )

test_lock() public method

public test_lock ( )

test_old_cache_is_cleared() public method

test_rebuild_directory_filesizes() public method

test_site_size_database() public method

test_site_size_file() public method

public test_site_size_file ( )

test_site_size_formatted() public method

test_site_size_with_filescanner_complete_equals_database_plus_files() public method

test_site_size_without_filescanner_complete_equals_database() public method