Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed failing font collection tests (when ran in a suite) due to repe…
…ated collection IDs
  • Loading branch information
pbking committed Oct 18, 2023
commit cfc98f1c797dff76ca382c86eed25cbd92983c62
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