You are here

public function BackupMigratePruneTestCase::testNumFiles in Backup and migrate prune 7.2

Same name and namespace in other branches
  1. 7 backup_migrate_prune.test \BackupMigratePruneTestCase::testNumFiles()

Test number of generated files

File

./backup_migrate_prune.test, line 73
Test implementation file

Class

BackupMigratePruneTestCase
BackupMigratePruneTestCase class for unit testing

Code

public function testNumFiles() {
  $gardener = new GardenerFake();
  $numfiles = count($gardener
    ->getDestination()
    ->list_files());
  $this
    ->assertEqual($numfiles, 1522, '1522 fake files generated.');
}