Skip to content

Commit

Permalink
PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
puntope committed Oct 6, 2024
1 parent 4e8fc0d commit 475711c
Showing 1 changed file with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,12 @@ public function test_gender_input() {
}

public function test_gtin_input() {

$description = 'Global Trade Item Number (GTIN) for your item. These identifiers include UPC (in North America), EAN (in Europe), JAN (in Japan), and ISBN (for books)';
$description = 'Global Trade Item Number (GTIN) for your item. These identifiers include UPC (in North America), EAN (in Europe), JAN (in Japan), and ISBN (for books)';
$custom_attributes = [];

if ( version_compare( WC_VERSION, '9.2', '>=' ) ) {
$custom_attributes = [ 'readonly' => 'readonly' ];
$description = 'The Global Trade Item Number (GTIN) for your item can now be entered on the "Inventory" tab';
$description = 'The Global Trade Item Number (GTIN) for your item can now be entered on the "Inventory" tab';
}

$input = new GTINInput();
Expand All @@ -326,15 +325,15 @@ public function test_gtin_input() {

$this->assertEquals(
[
'id' => 'gla_gtin',
'type' => 'text',
'label' => 'Global Trade Item Number (GTIN)',
'description' => $description,
'desc_tip' => true,
'value' => null,
'name' => 'gla_gtin',
'is_root' => true,
'children' => [],
'id' => 'gla_gtin',
'type' => 'text',
'label' => 'Global Trade Item Number (GTIN)',
'description' => $description,
'desc_tip' => true,
'value' => null,
'name' => 'gla_gtin',
'is_root' => true,
'children' => [],
'custom_attributes' => $custom_attributes,
],
$input->get_view_data()
Expand Down

0 comments on commit 475711c

Please sign in to comment.