1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
tests_package.php
См. документацию.
1<?
8
14{
15 const SLOW_LOCAL_TESTS = "slow_local";
16 const FAST_LOCAL_TESTS = "fast_local";
17 const LOCAL_TESTS = "local";
18 const REMOTE_TESTS = "remote";
19
20 protected static $fastLocalTests = array(
21 "CSecurityEnvironmentTest",
22 "CSecurityPhpConfigurationTest"
23 );
24
25 protected static $slowLocalTests = array(
26 "CSecurityFilePermissionsTest",
27 "CSecurityTaintCheckingTest",
28 "CSecurityUserTest",
29 "CSecurityUserOtpTest",
30 "CSecuritySiteConfigurationTest"
31 );
32
33 protected static $remoteTests = array(
34 "CSecurityCloudMonitorTest",
35 );
36
42 public static function getTestsPackage($pType = "")
43 {
44 if(is_array($pType))
45 {
46 $tests = array();
47 foreach($pType as $type)
48 {
49 $tests = array_merge($tests, self::getPackage($type));
50 }
51 }
52 else
53 {
54 $tests = self::getPackage($pType);
55 }
56 return $tests;
57 }
58
62 public static function getAllTests()
63 {
64 return array_merge(self::$fastLocalTests, self::$slowLocalTests, self::$remoteTests);
65 }
66
71 protected static function getPackage($pType = "")
72 {
73 if(!is_string($pType) || $pType == "")
74 return array();
75
76 if($pType === self::FAST_LOCAL_TESTS)
77 {
78 return self::$fastLocalTests;
79 }
80 elseif($pType === self::SLOW_LOCAL_TESTS)
81 {
82 return self::$slowLocalTests;
83 }
84 elseif($pType === self::LOCAL_TESTS)
85 {
86 return array_merge(self::$fastLocalTests, self::$slowLocalTests);
87 }
88 elseif($pType === self::REMOTE_TESTS)
89 {
90 return self::$remoteTests;
91 }
92 else
93 {
94 return array();
95 }
96 }
97}
$type
Определения options.php:106
const FAST_LOCAL_TESTS
Определения tests_package.php:16
static $slowLocalTests
Определения tests_package.php:25
static $remoteTests
Определения tests_package.php:33
static getTestsPackage($pType="")
Определения tests_package.php:42
static getAllTests()
Определения tests_package.php:62
const LOCAL_TESTS
Определения tests_package.php:17
const SLOW_LOCAL_TESTS
Определения tests_package.php:15
static getPackage($pType="")
Определения tests_package.php:71
const REMOTE_TESTS
Определения tests_package.php:18
static $fastLocalTests
Определения tests_package.php:20
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения prolog_main_admin.php:393