Skip to content

Commit e124460

Browse files
committed
Change tests so they have the right data for quick search to work
1 parent 179e7cf commit e124460

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/phpunit/tests/menu/wpAjaxMenuQuickSearch.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ public function test_search_returns_results_for_pages() {
1818
array(
1919
'post_type' => 'page',
2020
'post_content' => 'foo',
21+
'post_title' => 'foo',
2122
)
2223
);
2324
self::factory()->post->create(
2425
array(
2526
'post_type' => 'page',
2627
'post_content' => 'bar',
28+
'post_title' => 'bar',
2729
)
2830
);
2931

@@ -132,7 +134,7 @@ public function test_search_returns_post_types_with_numeric_slugs() {
132134

133135
self::factory()->post->create(
134136
array(
135-
'post_title' => 'Post Title 123',
137+
'post_title' => 'Post Title 123 FOO',
136138
'post_type' => 'wptests_123',
137139
'post_status' => 'publish',
138140
'post_content' => 'FOO',

0 commit comments

Comments
 (0)