Changeset 57626 for trunk/tests/phpunit/tests/formatting/emoji.php
- Timestamp:
- 02/13/2024 02:34:17 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/emoji.php
r53562 r57626 7 7 class Tests_Formatting_Emoji extends WP_UnitTestCase { 8 8 9 private $png_cdn = 'https://s.w.org/images/core/emoji/1 4.0.0/72x72/';10 private $svn_cdn = 'https://s.w.org/images/core/emoji/1 4.0.0/svg/';9 private $png_cdn = 'https://s.w.org/images/core/emoji/15.0.3/72x72/'; 10 private $svn_cdn = 'https://s.w.org/images/core/emoji/15.0.3/svg/'; 11 11 12 12 /** … … 81 81 public function test_wp_emoji_list_returns_data() { 82 82 $default = _wp_emoji_list(); 83 $this->assertNotEmpty( $default );83 $this->assertNotEmpty( $default, 'Default should not be empty' ); 84 84 85 85 $entities = _wp_emoji_list( 'entities' ); 86 $this->assertNotEmpty( $entities ); 87 88 $this->assertSame( $default, $entities ); 86 $this->assertNotEmpty( $entities, 'Entities should not be empty' ); 87 $this->assertIsArray( $entities, 'Entities should be an array' ); 88 // Emoji 15 contains 3718 entities, this number will only increase. 89 $this->assertGreaterThanOrEqual( 3718, count( $entities ), 'Entities should contain at least 3718 items' ); 90 $this->assertSame( $default, $entities, 'Entities should be returned by default' ); 89 91 90 92 $partials = _wp_emoji_list( 'partials' ); 91 $this->assertNotEmpty( $partials ); 93 $this->assertNotEmpty( $partials, 'Partials should not be empty' ); 94 $this->assertIsArray( $partials, 'Partials should be an array' ); 95 // Emoji 15 contains 1424 partials, this number will only increase. 96 $this->assertGreaterThanOrEqual( 1424, count( $partials ), 'Partials should contain at least 1424 items' ); 92 97 93 98 $this->assertNotSame( $default, $partials ); … … 107 112 ), 108 113 array( 109 // Skin tone, gender, ZWJ, emoji selector.110 ' 👮🏼♀️',111 'Ǵ 6e;🏼‍♀️',114 // Bird, ZWJ, black large squre, emoji selector. 115 '🐦⬛', 116 '🐦‍⬛', 112 117 ), 113 118 array(
Note: See TracChangeset
for help on using the changeset viewer.