Tests that search returns results with punctuation in the search phrase.
function testPhraseSearchPunctuation() {
$node = $this
->drupalCreateNode(array(
'body' => array(
array(
'value' => "The bunny's ears were fluffy.",
),
),
));
// Update the search index.
module_invoke_all('update_index');
search_update_totals();
// Refresh variables after the treatment.
$this
->refreshVariables();
// Submit a phrase wrapped in double quotes to include the punctuation.
$edit = array(
'keys' => '"bunny\'s"',
);
$this
->drupalPost('search/node', $edit, t('Search'));
$this
->assertText($node
->label());
}