public static function test_files_in_cache(&$test_profile, $include_extended_test_profiles = true, $skip_hash_checks = false) { $install_request = new pts_test_install_request($test_profile); $remote_files = false; $local_download_caches = pts_test_install_manager::local_download_caches(); $remote_download_caches = false; $phoromatic_server_caches = false; $install_request->generate_download_object_list(); $install_request->scan_download_caches($local_download_caches, $remote_download_caches, $remote_files, $phoromatic_server_caches, $skip_hash_checks); foreach ($install_request->get_download_objects() as $download_object) { if ($download_object->get_download_location_type() == null) { return false; } } foreach ($install_request->test_profile->extended_test_profiles() as $extended_test_profile) { if (self::test_files_available_locally($extended_test_profile) == false) { return false; } } return true; }