- Timestamp:
- 08/21/2023 05:49:09 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/editor/classic-to-block-menu-converter.php
r56052 r56422 206 206 * @covers WP_Classic_To_Block_Menu_Converter::convert 207 207 */ 208 public function test_returns_empty_ array_for_menus_with_no_items() {208 public function test_returns_empty_string_for_menus_with_no_items() { 209 209 $menu_id = wp_create_nav_menu( 'Empty Menu' ); 210 210 … … 213 213 $blocks = WP_Classic_To_Block_Menu_Converter::convert( $classic_nav_menu ); 214 214 215 $this->assertEmpty( $blocks, 'Result should be empty.' ); 216 217 $this->assertIsArray( $blocks, 'Result should be empty array.' ); 215 $this->assertSame( '', $blocks, 'Result should be empty string.' ); 218 216 219 217 wp_delete_nav_menu( $menu_id );
Note: See TracChangeset
for help on using the changeset viewer.