function HelpNoSearchUpgradeTest::testSearchHelpInstall

Same name and namespace in other branches
  1. 11.x core/modules/help/tests/src/Functional/HelpNoSearchUpgradeTest.php \Drupal\Tests\help\Functional\HelpNoSearchUpgradeTest::testSearchHelpInstall()

Tests system_update_11400().

See also

system_update_11400()

File

core/modules/help/tests/src/Functional/HelpNoSearchUpgradeTest.php, line 39

Class

HelpNoSearchUpgradeTest
Tests that the search_help module is not installed after help updates.

Namespace

Drupal\Tests\help\Functional

Code

public function testSearchHelpInstall() : void {
  $this->assertFalse(\Drupal::moduleHandler()->moduleExists('search_help'));
  $this->assertTrue(\Drupal::database()->schema()
    ->tableExists('help_search_items'));
  $this->runUpdates();
  $this->assertFalse(\Drupal::moduleHandler()->moduleExists('search_help'));
  $this->assertFalse(\Drupal::database()->schema()
    ->tableExists('help_search_items'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.