Skip to content

Commit

Permalink
Fixed failing font collection tests (when ran in a suite) due to repe…
Browse files Browse the repository at this point in the history
…ated collection IDs
  • Loading branch information
pbking committed Oct 18, 2023
1 parent 8215568 commit cfc98f1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Tests_Fonts_WpFontLibrary_RegisterFontCollection extends WP_UnitTestCase {

public function test_should_register_font_collection() {
$config = array(
'id' => 'my-collection',
'id' => 'my-collection-0',
'name' => 'My Collection',
'description' => 'My Collection Description',
'src' => 'my-collection-data.json',
Expand Down Expand Up @@ -54,13 +54,13 @@ public function test_should_return_error_if_config_is_empty() {

public function test_should_return_error_if_id_is_repeated() {
$config1 = array(
'id' => 'my-collection-1',
'id' => 'my-collection-repeated',
'name' => 'My Collection 1',
'description' => 'My Collection 1 Description',
'src' => 'my-collection-1-data.json',
);
$config2 = array(
'id' => 'my-collection-1',
'id' => 'my-collection-repeated',
'name' => 'My Collection 2',
'description' => 'My Collection 2 Description',
'src' => 'my-collection-2-data.json',
Expand Down

0 comments on commit cfc98f1

Please sign in to comment.