Skip to content

Commit

Permalink
fix: adjust test to remove ucwords
Browse files Browse the repository at this point in the history
  • Loading branch information
creative-andrew authored and kidunot89 committed Aug 6, 2024
1 parent 8f115ab commit c94056c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/wpunit/ProductAttributeQueriesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function expectedProductAttributeData( $product_id, $path ) {
$this->expectedField(
'label',
$attribute->is_taxonomy()
? ucwords( get_taxonomy( $attribute->get_name() )->labels->singular_name )
? get_taxonomy( $attribute->get_name() )->labels->singular_name
: ucwords( preg_replace( '/(-|_)/', ' ', $attribute->get_name() ) )
),
$this->expectedField( 'options', $attribute->get_slugs() ),
Expand Down

0 comments on commit c94056c

Please sign in to comment.