Changeset 52248 for trunk/tests/phpunit/tests/menu/walker-nav-menu.php
- Timestamp:
- 11/25/2021 07:39:31 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/menu/walker-nav-menu.php
r51657 r52248 42 42 */ 43 43 public function test_noopener_no_referrer_for_target_blank() { 44 $ expected= '';44 $actual = ''; 45 45 $post_id = $this->factory->post->create(); 46 46 $post_title = get_the_title( $post_id ); … … 62 62 ); 63 63 64 $this->walker->start_el( $ expected, (object) $item, 0, (object) $args );64 $this->walker->start_el( $actual, (object) $item, 0, (object) $args ); 65 65 66 $this->assertSame( "<li id=\"menu-item-{$post_id}\" class=\"menu-item-{$post_id}\"><a target=\"_blank\" rel=\"noopener\">{$post_title}</a>", $ expected);66 $this->assertSame( "<li id=\"menu-item-{$post_id}\" class=\"menu-item-{$post_id}\"><a target=\"_blank\" rel=\"noopener\">{$post_title}</a>", $actual ); 67 67 } 68 68
Note: See TracChangeset
for help on using the changeset viewer.