public function SimpletestResultsForm::__construct

Constructs a \Drupal\simpletest\Form\SimpletestResultsForm object.

Parameters

\Drupal\Core\Database\Connection $database: The database connection service.

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/Form/SimpletestResultsForm.php, line 47
Contains \Drupal\simpletest\Form\SimpletestResultsForm.

Class

SimpletestResultsForm
Test results form for $test_id.

Namespace

Drupal\simpletest\Form

Code

public function __construct(Connection $database) {
  $this->database = $database;

  // Initialize image mapping property.
  $this->statusImageMap = array(
    'pass' => theme('image', array(
      'uri' => 'core/misc/watchdog-ok.png',
      'width' => 18,
      'height' => 18,
      'alt' => t('Pass'),
    )),
    'fail' => theme('image', array(
      'uri' => 'core/misc/watchdog-error.png',
      'width' => 18,
      'height' => 18,
      'alt' => t('Fail'),
    )),
    'exception' => theme('image', array(
      'uri' => 'core/misc/watchdog-warning.png',
      'width' => 18,
      'height' => 18,
      'alt' => t('Exception'),
    )),
    'debug' => theme('image', array(
      'uri' => 'core/misc/watchdog-warning.png',
      'width' => 18,
      'height' => 18,
      'alt' => t('Debug'),
    )),
  );
}