Fix: 'require's that should be 'require_once' instead.
This commit is contained in:
parent
a67b6405ec
commit
96d0a129b5
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
// phpcs:ignore Squiz.Commenting.FileComment.Missing
|
||||
require __DIR__ . '/date-filtering.php';
|
||||
require_once __DIR__ . '/date-filtering.php';
|
||||
|
||||
/**
|
||||
* Coupon API Tests
|
||||
|
|
|
@ -31,7 +31,7 @@ trait DateFilteringForCrudControllers {
|
|||
* @param bool $filter_by_gmt Whether the dates to filter by are GMT or not.
|
||||
* @param bool $expected_to_be_returned True if the created item is expected to be included in the response, false otherwise.
|
||||
*/
|
||||
public function test_foo_filter_by_creation_or_modification_date( $param_name, $filter_by_gmt, $expected_to_be_returned ) {
|
||||
public function test_filter_by_creation_or_modification_date( $param_name, $filter_by_gmt, $expected_to_be_returned ) {
|
||||
global $wpdb;
|
||||
|
||||
wp_set_current_user( $this->user );
|
||||
|
@ -77,7 +77,7 @@ trait DateFilteringForCrudControllers {
|
|||
* @param bool $filter_by_gmt Whether the dates to filter by are GMT or not.
|
||||
* @param bool $expected_to_be_returned True if the created item is expected to be included in the response, false otherwise.
|
||||
*/
|
||||
public function test_foo_can_filter_by_more_than_one_date( $first_param_name, $first_param_value, $second_param_name, $second_param_value, $filter_by_gmt, $expected_to_be_returned ) {
|
||||
public function test_can_filter_by_more_than_one_date( $first_param_name, $first_param_value, $second_param_name, $second_param_value, $filter_by_gmt, $expected_to_be_returned ) {
|
||||
global $wpdb;
|
||||
|
||||
wp_set_current_user( $this->user );
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
// phpcs:ignore Squiz.Commenting.FileComment.Missing
|
||||
require __DIR__ . '/date-filtering.php';
|
||||
require_once __DIR__ . '/date-filtering.php';
|
||||
|
||||
use Automattic\WooCommerce\RestApi\UnitTests\Helpers\CouponHelper;
|
||||
use Automattic\WooCommerce\RestApi\UnitTests\Helpers\OrderHelper;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
// phpcs:ignore Squiz.Commenting.FileComment.Missing
|
||||
require __DIR__ . '/date-filtering.php';
|
||||
require_once __DIR__ . '/date-filtering.php';
|
||||
|
||||
/**
|
||||
* WC_Tests_API_Product class.
|
||||
|
|
Loading…
Reference in New Issue