setTimezone( new DateTimeZone(CloudAutomaticBackupService::TIMEZONE) ); $assert($local->format('w H:i') === '1 00:00', 'Weekly schedule did not use the selected Pacific weekday at midnight.'); $routes = file_get_contents(dirname(__DIR__) . '/config/routes_cloud.php'); $assert(str_contains($routes, "'/backups'") && str_contains($routes, "'/vms/{id:[0-9]+}/automatic-backup'") && str_contains($routes, "'/vms/{id:[0-9]+}/automatic-backup/{backup_id:[0-9]+}/restore'"), 'Owner backup routes are incomplete.'); echo "Automatic backup Pacific schedule and route contract passed.\n";