-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcocart-tests.php
47 lines (43 loc) · 1.32 KB
/
cocart-tests.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* Plugin Name: CoCart Tests
* Plugin URI: https://cocartapi.com
* Description: Run tests for CoCart.
* Author: CoCart Headless, LLC
* Author URI: https://cocartapi.com
* Version: 1.0.0
* Text Domain: cocart-tests
* Domain Path: /languages/
* Requires at least: 5.6
* Tested up to: 6.6
* Requires PHP: 7.4
* CoCart requires at least: 4.2
* CoCart tested up to: 4.3
*
* Copyright: CoCart Headless, LLC
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*
* @package CoCart Tests
*/
if ( ! defined( 'COCART_TESTS_FILE' ) ) {
define( 'COCART_TESTS_FILE', __FILE__ ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
}
if ( ! class_exists( 'CoCart_Tests' ) ) {
include_once untrailingslashit( plugin_dir_path( COCART_TESTS_FILE ) ) . '/includes/class-cocart-tests.php';
} // END if class exists
/**
* Returns the main instance of CoCart Tests.
*
* @return CoCart_Tests
*/
if ( ! function_exists( 'CoCart_Tests' ) ) {
/**
* Initialize CoCart Tests.
*/
function CoCart_Tests() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid, WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound
return CoCart_Tests::instance();
}
// Run CoCart Tests.
CoCart_Tests();
}