Changeset 52402 for trunk/tests/phpunit/tests/theme/wpThemeJson.php
- Timestamp:
- 12/21/2021 07:00:16 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpThemeJson.php
r52401 r52402 648 648 * @ticket 54336 649 649 */ 650 public function test_get_stylesheet_generates_proper_classes_ from_slugs() {650 public function test_get_stylesheet_generates_proper_classes_and_css_vars_from_slugs() { 651 651 $theme_json = new WP_Theme_JSON( 652 652 array( 653 653 'version' => WP_Theme_JSON::LATEST_SCHEMA, 654 654 'settings' => array( 655 'color' => array(655 'color' => array( 656 656 'palette' => array( 657 657 array( … … 672 672 ), 673 673 ), 674 ), 675 'custom' => array( 676 'white2black' => 'value', 674 677 ), 675 678 ), … … 682 685 ); 683 686 $this->assertEquals( 684 'body{--wp--preset--color--grey: grey;--wp--preset--color--dark-grey: grey;--wp--preset--color--light-grey: grey;--wp--preset--color--white-2-black: grey; }',687 'body{--wp--preset--color--grey: grey;--wp--preset--color--dark-grey: grey;--wp--preset--color--light-grey: grey;--wp--preset--color--white-2-black: grey;--wp--custom--white-2-black: value;}', 685 688 $theme_json->get_stylesheet( array( 'variables' ) ) 686 689 );
Note: See TracChangeset
for help on using the changeset viewer.