Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
worais committed Oct 1, 2024
1 parent 65d3df1 commit d3183d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/phpunit/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package WC_Gateway_Amazon_Pay
*/

ini_set('error_reporting', E_ALL); // or error_reporting(E_ALL);
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');

$_tests_dir = getenv( 'WP_TESTS_DIR' );
if ( ! $_tests_dir ) {
$_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class WC_Mocker_Gateway_Amazon_Payments_Advanced extends WC_Gateway_Amazon_Payme
*
* @param int|string $order_total The order total to be set.
*/
public function __construct( $order_total = 50 ) {
public function __construct( int|string $order_total = 50 ) {
$this->settings = WC_Amazon_Payments_Advanced_API::get_settings();

self::$order_total = $order_total;
Expand Down

0 comments on commit d3183d6

Please sign in to comment.