You appear to be a bot. Output may be restricted
Description
Usage
Tests_Menu_Walker_Nav_Menu_Edit::test_original_title_prefix_should_not_be_shown_if_empty();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/menu/walker-nav-menu-edit.php
Lines:
1 to 27 of 27
public function test_original_title_prefix_should_not_be_shown_if_empty() { $expected = ''; $post_id = $this->factory->post->create(); $item = array( 'classes' => array(), 'description' => '', 'ID' => $post_id, 'menu_item_parent' => 0, 'menu_order' => 0, 'object_id' => $post_id, 'object' => 'post', 'post_excerpt' => get_the_excerpt( $post_id ), 'title' => get_the_title( $post_id ), 'type' => 'foobar', 'type_label' => 'Foo Bar', 'target' => '_blank', 'url' => '', 'xfn' => '', ); $this->walker->start_el( $expected, (object) $item ); $this->assertDoesNotMatchRegularExpression( '#<p class="link-to-original">\s*Original: <a href=""></a>#', $expected ); }