Issue #2207767 by temaruk, Coornail, rteijeiro, alexrayu, LewisNyman: Replace watchdog icons with Libricons.
parent
29bfb33e7c
commit
fd4e22077f
Binary file not shown.
Before Width: | Height: | Size: 780 B |
Binary file not shown.
Before Width: | Height: | Size: 375 B |
Binary file not shown.
Before Width: | Height: | Size: 318 B |
|
@ -51,28 +51,28 @@ class SimpletestResultsForm extends FormBase {
|
|||
// Initialize image mapping property.
|
||||
$image_pass = array(
|
||||
'#theme' => 'image',
|
||||
'#uri' => 'core/misc/watchdog-ok.png',
|
||||
'#uri' => 'core/misc/icons/73b355/check.png',
|
||||
'#width' => 18,
|
||||
'#height' => 18,
|
||||
'#alt' => $this->t('Pass'),
|
||||
);
|
||||
$image_fail = array(
|
||||
'#theme' => 'image',
|
||||
'#uri' => 'core/misc/watchdog-error.png',
|
||||
'#uri' => 'core/misc/icons/ea2800/error.png',
|
||||
'#width' => 18,
|
||||
'#height' => 18,
|
||||
'#alt' => $this->t('Fail'),
|
||||
);
|
||||
$image_exception = array(
|
||||
'#theme' => 'image',
|
||||
'#uri' => 'core/misc/watchdog-warning.png',
|
||||
'#uri' => 'core/misc/icons/e29700/warning.png',
|
||||
'#width' => 18,
|
||||
'#height' => 18,
|
||||
'#alt' => $this->t('Exception'),
|
||||
);
|
||||
$image_debug = array(
|
||||
'#theme' => 'image',
|
||||
'#uri' => 'core/misc/watchdog-warning.png',
|
||||
'#uri' => 'core/misc/icons/e29700/warning.png',
|
||||
'#width' => 18,
|
||||
'#height' => 18,
|
||||
'#alt' => $this->t('Debug'),
|
||||
|
|
3
core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php
Normal file → Executable file
3
core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php
Normal file → Executable file
|
@ -7,6 +7,7 @@
|
|||
|
||||
namespace Drupal\simpletest\Tests;
|
||||
|
||||
use Drupal\Core\Database\Driver\pgsql\Select;
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
class SimpleTestTest extends WebTestBase {
|
||||
|
@ -298,7 +299,7 @@ class SimpleTestTest extends WebTestBase {
|
|||
$assertion['file'] = $this->asText($row->td[2]);
|
||||
$assertion['line'] = $this->asText($row->td[3]);
|
||||
$assertion['function'] = $this->asText($row->td[4]);
|
||||
$ok_url = file_create_url('core/misc/watchdog-ok.png');
|
||||
$ok_url = file_create_url('core/misc/icons/73b355/check.png');
|
||||
$assertion['status'] = ($row->td[5]->img['src'] == $ok_url) ? 'Pass' : 'Fail';
|
||||
$results['assertions'][] = $assertion;
|
||||
}
|
||||
|
|
|
@ -45,28 +45,28 @@ function theme_update_report($variables) {
|
|||
switch ($project['status']) {
|
||||
case UPDATE_CURRENT:
|
||||
$class = 'ok';
|
||||
$uri = 'core/misc/watchdog-ok.png';
|
||||
$uri = 'core/misc/icons/73b355/check.png';
|
||||
$text = t('ok');
|
||||
break;
|
||||
case UPDATE_UNKNOWN:
|
||||
case UPDATE_FETCH_PENDING:
|
||||
case UPDATE_NOT_FETCHED:
|
||||
$class = 'unknown';
|
||||
$uri = 'core/misc/watchdog-warning.png';
|
||||
$uri = 'core/misc/icons/e29700/warning.png';
|
||||
$text = t('warning');
|
||||
break;
|
||||
case UPDATE_NOT_SECURE:
|
||||
case UPDATE_REVOKED:
|
||||
case UPDATE_NOT_SUPPORTED:
|
||||
$class = 'error';
|
||||
$uri = 'core/misc/watchdog-error.png';
|
||||
$uri = 'core/misc/icons/ea2800/error.png';
|
||||
$text = t('error');
|
||||
break;
|
||||
case UPDATE_NOT_CHECKED:
|
||||
case UPDATE_NOT_CURRENT:
|
||||
default:
|
||||
$class = 'warning';
|
||||
$uri = 'core/misc/watchdog-warning.png';
|
||||
$uri = 'core/misc/icons/e29700/warning.png';
|
||||
$text = t('warning');
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue