You are here

class DbCommandBaseTester in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTester

Concrete command implementation for testing base features.

Hierarchy

Expanded class hierarchy of DbCommandBaseTester

File

core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php, line 112
Contains \Drupal\Tests\system\Kernel\Scripts\DbCommandBaseTest.

Namespace

Drupal\Tests\system\Kernel\Scripts
View source
class DbCommandBaseTester extends DbCommandBase {

  /**
   * {@inheritdoc}
   */
  public function configure() {
    parent::configure();
    $this
      ->setName('test');
  }

  /**
   * {@inheritdoc}
   */
  public function getDatabaseConnection(InputInterface $input) {
    return parent::getDatabaseConnection($input);
  }

  /**
   * {@inheritdoc}
   */
  protected function execute(InputInterface $input, OutputInterface $output) {

    // Empty implementation for testing.
    return 0;
  }

}

Members