PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / trunk
ووسلام – همگام سازی ووکامرس و باسلام vtrunk
1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.2 1.9.1 1.9.0 1.8.8 1.8.5 1.8.6 1.8.7 1.8.4 1.7.6 All 50 releases
sync-basalam / tests / bootstrap.php

bootstrap.php in ووسلام – همگام سازی ووکامرس و باسلام trunk, at tests/bootstrap.php

32 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined('ABSPATH') || define('ABSPATH', __DIR__ . '/wordpress/');
4 defined('MINUTE_IN_SECONDS') || define('MINUTE_IN_SECONDS', 60);
5 defined('HOUR_IN_SECONDS') || define('HOUR_IN_SECONDS', 3600);
6 defined('DAY_IN_SECONDS') || define('DAY_IN_SECONDS', 86400);
7
8 if (!function_exists('wp_get_image_mime')) {
9 function wp_get_image_mime($file)
10 {
11 return $GLOBALS['sync_basalam_test_image_mime'] ?? false;
12 }
13 }
14
15 if (!function_exists('wp_check_filetype')) {
16 function wp_check_filetype($file)
17 {
18 return [
19 'ext' => pathinfo($file, PATHINFO_EXTENSION),
20 'type' => $GLOBALS['sync_basalam_test_filetype_mime'] ?? null,
21 ];
22 }
23 }
24
25 require_once __DIR__ . '/Support/JobsRunnerWordPressStubs.php';
26
27 require_once dirname(__DIR__) . '/includes/Services/MediaMimeType.php';
28 require_once dirname(__DIR__) . '/includes/Services/MediaUploadService.php';
29 require_once dirname(__DIR__) . '/includes/Services/VendorSyncPolicy.php';
30 require_once dirname(__DIR__) . '/includes/Services/ForceUpdateGate.php';
31 require_once dirname(__DIR__) . '/JobsRunner.php';
32