Changeset 56548 for trunk/tests/phpunit/tests/theme/wpThemeJson.php
- Timestamp:
- 09/08/2023 10:01:14 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/theme/wpThemeJson.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpThemeJson.php
r56547 r56548 766 766 $theme_json->get_stylesheet( array( 'variables' ) ) 767 767 ); 768 769 768 } 770 769 … … 3770 3769 $this->assertIsArray( $sanitized_theme_json, 'Sanitized theme.json is not an array data type' ); 3771 3770 $this->assertArrayNotHasKey( 'styles', $sanitized_theme_json, 'Sanitized theme.json should not have a "styles" key' ); 3772 3773 3771 } 3774 3772 … … 4763 4761 $this->assertEquals( 'var(--wp--preset--font-size--s)', $styles['blocks']['core/quote']['variations']['plain']['typography']['fontSize'], 'Style variations: Assert the originally correct values are still correct.' ); 4764 4762 $this->assertEquals( 'var(--wp--preset--color--s)', $styles['blocks']['core/quote']['variations']['plain']['color']['background'], 'Style variations: Assert the internal variables are convert to CSS custom variables.' ); 4765 4766 4763 } 4767 4764
Note: See TracChangeset
for help on using the changeset viewer.