public function GeneralTest::testButtonsExecutingCommands in OptimizeDB 8
Testing module admin page buttons.
File
- tests/
src/ Functional/ GeneralTest.php, line 71
Class
- GeneralTest
- Test the module functions.
Namespace
Drupal\Tests\optimizedb\FunctionalCode
public function testButtonsExecutingCommands() {
$this
->drupalPostForm('admin/config/development/optimizedb', [], $this
->t('Optimize tables'));
$this
->assertText($this
->t('The operation completed successfully.'));
}