Skip to content

Commit

Permalink
Backport 61842 PHPUnit wpThemeJsonSchema.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed May 23, 2024
1 parent 40784e2 commit 9be2f8d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/phpunit/tests/theme/wpThemeJsonSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,20 @@ public function test_migrate_v2_to_latest() {
),
),
),
'spacing' => array(
'spacingSizes' => array(
array(
'name' => 'Small',
'slug' => 20,
'size' => '20px',
),
array(
'name' => 'Large',
'slug' => 80,
'size' => '80px',
),
),
),
),
);

Expand All @@ -253,6 +267,21 @@ public function test_migrate_v2_to_latest() {
),
),
),
'spacing' => array(
'defaultSpacingSizes' => false,
'spacingSizes' => array(
array(
'name' => 'Small',
'slug' => 20,
'size' => '20px',
),
array(
'name' => 'Large',
'slug' => 80,
'size' => '80px',
),
),
),
);

$this->assertEqualSetsWithIndex( $expected, $actual );
Expand Down

0 comments on commit 9be2f8d

Please sign in to comment.