'Did not find the search block in block candidate list.'
);
$this->assertSession()->linkByHrefExists('/admin/structure/block/add/search_form_block/stable',0,'Did not find the search block in block candidate list.');
@@ -105,11 +101,10 @@ class GoogleCSEDisplayTest extends BrowserTestBase {
// Test the default search via the block form, from the front page.
$this->drupalGet('');
$terms=['keys'=>'test'];
$this->drupalPostForm('',$terms,t('Search'));
$this->drupalGet('');
$this->submitForm($terms,'Search');
$this->assertEqual(
$this->getUrl(),
Url::fromRoute('search.view_'.$entity_id,[],['query'=>['keys'=>$terms['keys']],'absolute'=>TRUE])->toString(),'Submitted to correct URL.');
$this->assertEquals($this->getUrl(),Url::fromRoute('search.view_'.$entity_id,[],['query'=>['keys'=>$terms['keys']],'absolute'=>TRUE])->toString(),'Submitted to correct URL.');