From 2db2e720c9fdf58735048c069f4db88e8e8705e4 Mon Sep 17 00:00:00 2001 From: Michael Pretty Date: Tue, 21 Mar 2023 10:55:08 -0400 Subject: [PATCH] Correcting quoting style for non-dynamic strings in tests --- .../tests/php/includes/wc-update-functions-test.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/woocommerce/tests/php/includes/wc-update-functions-test.php b/plugins/woocommerce/tests/php/includes/wc-update-functions-test.php index 923f59478bc..2a88a07e441 100644 --- a/plugins/woocommerce/tests/php/includes/wc-update-functions-test.php +++ b/plugins/woocommerce/tests/php/includes/wc-update-functions-test.php @@ -24,8 +24,8 @@ class WC_Update_Functions_Test extends \WC_Unit_Test_Case { REFERENCES `{$wpdb->prefix}woocommerce_downloadable_product_permissions` (`permission_id`) ON DELETE CASCADE" ); $table_definition = $wpdb->get_var( "SHOW CREATE TABLE {$wpdb->prefix}wc_download_log", 1 ); - $this->assertNotFalse( strpos( $table_definition, "wc_download_log_ib" ) ); - $this->assertNotFalse( strpos( $table_definition, "wc_download_log_ib_2" ) ); + $this->assertNotFalse( strpos( $table_definition, 'wc_download_log_ib' ) ); + $this->assertNotFalse( strpos( $table_definition, 'wc_download_log_ib_2' ) ); include_once WC_ABSPATH . 'includes/wc-update-functions.php'; @@ -33,7 +33,7 @@ class WC_Update_Functions_Test extends \WC_Unit_Test_Case { // Verify that the keys were properly removed $table_definition = $wpdb->get_var( "SHOW CREATE TABLE {$wpdb->prefix}wc_download_log", 1 ); - $this->assertFalse( strpos( $table_definition, "wc_download_log_ib" ) ); + $this->assertFalse( strpos( $table_definition, 'wc_download_log_ib' ) ); } public function test_verify_wc_update_352_drop_download_log_fk_removes_foreign_keys() { @@ -47,7 +47,7 @@ class WC_Update_Functions_Test extends \WC_Unit_Test_Case { REFERENCES `{$wpdb->prefix}woocommerce_downloadable_product_permissions` (`permission_id`) ON DELETE CASCADE" ); $table_definition = $wpdb->get_var( "SHOW CREATE TABLE {$wpdb->prefix}wc_download_log", 1 ); - $this->assertNotFalse( strpos( $table_definition, "fk_wc_download_log_permission_id" ) ); + $this->assertNotFalse( strpos( $table_definition, 'fk_wc_download_log_permission_id' ) ); include_once WC_ABSPATH . 'includes/wc-update-functions.php'; @@ -55,7 +55,7 @@ class WC_Update_Functions_Test extends \WC_Unit_Test_Case { // Verify that the key was properly removed $table_definition = $wpdb->get_var( "SHOW CREATE TABLE {$wpdb->prefix}wc_download_log", 1 ); - $this->assertFalse( strpos( $table_definition, "fk_wc_download_log_permission_id" ) ); + $this->assertFalse( strpos( $table_definition, 'fk_wc_download_log_permission_id' ) ); } public function test_verify_wc_update_700_remove_download_log_fk_removes_foreign_keys() {