$this->assertText(t('Consider loosening your query with OR. bike OR shed will often show more results than bike shed.'),t('Help text is displayed when search returns no results.'));
$this->assertText(t('Consider loosening your query with OR. bike OR shed will often show more results than bike shed.'),'Help text is displayed when search returns no results.');
$this->assertText(t('Search'));
$this->assertTitle($title,'Search page title is correct');
...
...
@@ -342,31 +342,31 @@ class SearchAdvancedSearchForm extends DrupalWebTestCase {
* Test using the advanced search form to limit search to nodes of type "Basic page".
*/
functiontestNodeType(){
$this->assertTrue($this->node->type=='page',t('Node type is Basic page.'));
$this->assertTrue($this->node->type=='page','Node type is Basic page.');
// Assert that the dummy title doesn't equal the real title.
$dummy_title='Lorem ipsum';
$this->assertNotEqual($dummy_title,$this->node->title,t("Dummy title doesn't equal node title"));
$this->assertNotEqual($dummy_title,$this->node->title,"Dummy title doesn't equal node title");
// Search for the dummy title with a GET query.
$this->drupalGet('search/node/'.$dummy_title);
$this->assertNoText($this->node->title,t('Basic page node is not found with dummy title.'));
$this->assertNoText($this->node->title,'Basic page node is not found with dummy title.');
// Search for the title of the node with a GET query.
$this->checkCommentAccess('Admin user has access comments permission and no search permission, but comments should be indexed because admin user inherits authenticated user\'s permission to search',TRUE);
}
/**
...
...
@@ -926,7 +926,7 @@ class SearchCommentTestCase extends DrupalWebTestCase {
// Verify that if you view the node on its own page, 'add new comment'
// is there.
$this->drupalGet('node/'.$node->nid);
$this->assertText(t('Add new comment'),t('Add new comment appears on node page'));
$this->assertText(t('Add new comment'),'Add new comment appears on node page');
// Run cron to index this page.
$this->drupalLogout();
...
...
@@ -935,13 +935,13 @@ class SearchCommentTestCase extends DrupalWebTestCase {
@@ -1094,8 +1094,8 @@ class SearchCommentCountToggleTestCase extends DrupalWebTestCase {
node_save($this->searchable_nodes['1 comment']);
$this->drupalPost('',$edit,t('Search'));
$this->assertNoText(t('0 comments'),t('Empty comment count does not display for nodes with comment status set to Hidden'));
$this->assertNoText(t('1 comment'),t('Non-empty comment count does not display for nodes with comment status set to Hidden'));
$this->assertNoText(t('0 comments'),'Empty comment count does not display for nodes with comment status set to Hidden');
$this->assertNoText(t('1 comment'),'Non-empty comment count does not display for nodes with comment status set to Hidden');
}
}
...
...
@@ -1160,7 +1160,7 @@ class SearchSimplifyTestCase extends DrupalWebTestCase {
for($i=0;$i<32;$i++){
$string.=chr($i);
}
$this->assertIdentical(' ',search_simplify($string),t('Search simplify works for ASCII control characters.'));
$this->assertIdentical(' ',search_simplify($string),'Search simplify works for ASCII control characters.');
}
/**
...
...
@@ -1316,7 +1316,7 @@ class SearchNumbersTestCase extends DrupalWebTestCase {
$this->drupalPost('search/node',
array('keys'=>$number),
t('Search'));
$this->assertText($node->title,$type.': node title shown (search found the node) in search for number '.$number);
$this->assertText($node->title,format_string('%type: node title shown (search found the node) in search for number %number.',array('%type'=>$type,'%number'=>$number)));
}
}
}
...
...
@@ -1384,7 +1384,7 @@ class SearchNumberMatchingTestCase extends DrupalWebTestCase {
$this->drupalPost('search/node',
array('keys'=>'foo'),
t('Search'));
$this->assertNoText($node->title,$i.': node title not shown in dummy search');
$this->assertNoText($node->title,format_string('%number: node title not shown in dummy search',array('%number'=>$i)));
// Now verify that we can find node i by searching for any of the
// numbers.
...
...
@@ -1397,7 +1397,7 @@ class SearchNumberMatchingTestCase extends DrupalWebTestCase {
$this->drupalPost('search/node',
array('keys'=>$number),
t('Search'));
$this->assertText($node->title,$i.': node title shown (search found the node) in search for number '.$number);
$this->assertText($node->title,format_string('%i: node title shown (search found the node) in search for number %number',array('%i'=>$i,'%number'=>$number)));
}
}
...
...
@@ -1558,7 +1558,7 @@ class SearchConfigSettingsForm extends DrupalWebTestCase {
$this->drupalGet($path);
foreach($modulesas$module){
$title=$module_info[$module]['title'];
$this->assertText($title,$title.' search tab is shown');
$this->assertText($title,format_string('%title search tab is shown',array('%title'=>$title)));
}
}
}
...
...
@@ -1955,42 +1955,42 @@ class SearchLanguageTestCase extends DrupalWebTestCase {
functiontestLanguages(){
// Check that there are initially no languages displayed.
$this->drupalGet('search/node');
$this->assertNoText(t('Languages'),t('No languages to choose from.'));
$this->assertNoText(t('Languages'),'No languages to choose from.');