From e60651173e4dd101a7a57364121838933d790589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Krzemin=CC=81ski?= Date: Thu, 21 Nov 2024 13:19:31 +0100 Subject: [PATCH] Fix lint issues in tests --- tests/phpunit/test-class-alerts-list.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/test-class-alerts-list.php b/tests/phpunit/test-class-alerts-list.php index e62f4612c..cb9225606 100644 --- a/tests/phpunit/test-class-alerts-list.php +++ b/tests/phpunit/test-class-alerts-list.php @@ -68,15 +68,15 @@ public function test_enqueue_scripts() { public function test_save_alert_inline_edit() { $alerts_list = new Alerts_List( $this->plugin ); $post_id = wp_insert_post( - [ + array( 'post_type' => Alerts::POST_TYPE, - ] + ) ); - $postarr = [ + $postarr = array( 'ID' => $post_id, 'post_type' => Alerts::POST_TYPE, - ]; - $data = []; + ); + $data = array(); // Create and authenticate user. $user_id = self::factory()->user->create( array( 'role' => 'administrator' ) );