Fix: 'require's that should be 'require_once' instead.

This commit is contained in:
Nestor Soriano 2021-08-26 16:22:39 +02:00
parent a67b6405ec
commit 96d0a129b5
No known key found for this signature in database
GPG Key ID: 08110F3518C12CAD
4 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@
*/
// phpcs:ignore Squiz.Commenting.FileComment.Missing
require __DIR__ . '/date-filtering.php';
require_once __DIR__ . '/date-filtering.php';
/**
* Coupon API Tests

View File

@ -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 );

View File

@ -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;

View File

@ -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.