protected function WebTestBase::installParameters

Returns the parameters that will be used when Simpletest installs Drupal.

See also

install_drupal()

install_state_defaults()

2 calls to WebTestBase::installParameters()
SiteNameTest::installParameters in drupal/core/modules/system/lib/Drupal/system/Tests/Installer/SiteNameTest.php
Overrides \Drupal\simpletest\WebTestBase::installParameters().
WebTestBase::setUp in drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
Sets up a Drupal site for running functional and integration tests.
1 method overrides WebTestBase::installParameters()
SiteNameTest::installParameters in drupal/core/modules/system/lib/Drupal/system/Tests/Installer/SiteNameTest.php
Overrides \Drupal\simpletest\WebTestBase::installParameters().

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php, line 848
Definition of Drupal\simpletest\WebTestBase.

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function installParameters() {
  $connection_info = Database::getConnectionInfo();
  $parameters = array(
    'interactive' => FALSE,
    'parameters' => array(
      'profile' => $this->profile,
      'langcode' => 'en',
    ),
    'forms' => array(
      'install_settings_form' => $connection_info['default'],
      'install_configure_form' => array(
        'site_name' => 'Drupal',
        'site_mail' => 'simpletest@example.com',
        'account' => array(
          'name' => $this->root_user->name,
          'mail' => $this->root_user->mail,
          'pass' => array(
            'pass1' => $this->root_user->pass_raw,
            'pass2' => $this->root_user->pass_raw,
          ),
        ),
        // form_type_checkboxes_value() requires NULL instead of FALSE values
        // for programmatic form submissions to disable a checkbox.
        'update_status_module' => array(
          1 => NULL,
          2 => NULL,
        ),
      ),
    ),
  );
  return $parameters;
}