Skip to content
Snippets Groups Projects

Issue #3289533 by Project Update Bot, priyanka_chauhan31, baikho, yashingole,...

2 files
+ 5
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -87,12 +87,14 @@ class ExcludedContentTest extends BrowserTestBase {
@@ -87,12 +87,14 @@ class ExcludedContentTest extends BrowserTestBase {
$searchPluginManager = $this->container->get('plugin.manager.search');
$searchPluginManager = $this->container->get('plugin.manager.search');
$searchPluginManager->clearCachedDefinitions();
$searchPluginManager->clearCachedDefinitions();
$searchPluginManager->createInstance('search_exclude_node_search', $config->get('configuration'))->updateIndex();
$searchPluginManager->createInstance('search_exclude_node_search', $config->get('configuration'))->updateIndex();
 
$this->drupalGet('search/exclude');
// Finally search for the content types to verify inclusion/exclusion
// Finally search for the content types to verify inclusion/exclusion
// appropriately.
// appropriately.
$this->drupalPostForm('search/exclude', ['keys' => '"Included Content"'], t('Search'));
$this->submitForm(['keys' => '"Included Content"'], t('Search'));
$this->assertSession()->pageTextNotContains('Your search yielded no results');
$this->assertSession()->pageTextNotContains('Your search yielded no results');
$this->drupalPostForm('search/exclude', ['keys' => '"Excluded Content"'], t('Search'));
$this->drupalGet('search/exclude');
 
$this->submitForm(['keys' => '"Excluded Content"'], t('Search'));
$this->assertSession()->pageTextContains('Your search yielded no results');
$this->assertSession()->pageTextContains('Your search yielded no results');
}
}
Loading