From a11f5926b1047c1fe3b620a05b17162477d87cba Mon Sep 17 00:00:00 2001 From: Michael Pretty Date: Fri, 17 Feb 2023 11:26:55 -0500 Subject: [PATCH] lint fixes and fix typo --- .../ProductAttributesLookup/DataRegeneratorTest.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/woocommerce/tests/php/src/Internal/ProductAttributesLookup/DataRegeneratorTest.php b/plugins/woocommerce/tests/php/src/Internal/ProductAttributesLookup/DataRegeneratorTest.php index c7ce0c3fbf3..681f842764c 100644 --- a/plugins/woocommerce/tests/php/src/Internal/ProductAttributesLookup/DataRegeneratorTest.php +++ b/plugins/woocommerce/tests/php/src/Internal/ProductAttributesLookup/DataRegeneratorTest.php @@ -81,7 +81,7 @@ class DataRegeneratorTest extends \WC_Unit_Test_Case { * * @param bool $previously_existing True to create a lookup table beforehand. */ - public function test_initiate_regeneration_creates_looukp_table( $previously_existing ) { + public function test_initiate_regeneration_creates_lookup_table( $previously_existing ) { global $wpdb; // phpcs:disable WordPress.DB.PreparedSQL.NotPrepared @@ -96,9 +96,10 @@ class DataRegeneratorTest extends \WC_Unit_Test_Case { // Try to insert a row to verify that the table exists. // We can't use the regular table existence detection mechanisms because PHPUnit creates all tables as temporary. - $wpdb->query( 'INSERT INTO ' . $this->lookup_table_name . - '( product_id, product_or_parent_id, taxonomy, term_id, is_variation_attribute, in_stock)' . - " VALUES (1, 1, 'taxonomy', 1, 1, 1 )" + $wpdb->query( + 'INSERT INTO ' . $this->lookup_table_name . + '( product_id, product_or_parent_id, taxonomy, term_id, is_variation_attribute, in_stock)' . + " VALUES (1, 1, 'taxonomy', 1, 1, 1 )" ); $value = $wpdb->get_var( 'SELECT product_id FROM ' . $this->lookup_table_name . ' LIMIT 1' ); $this->assertEquals( 1, $value );