You are here

public function LoggerWebTest::testLoggerNormal in Ultimate Cron 8.2

Tests that the logger handles an exception correctly.

File

tests/src/Functional/LoggerWebTest.php, line 133

Class

LoggerWebTest
Tests that scheduler plugins are discovered correctly.

Namespace

Drupal\Tests\ultimate_cron\Functional

Code

public function testLoggerNormal() {

  // Run cron to get an exception from ultimate_cron_logger_test module.
  $this
    ->cronRun();

  // Check that the error message is displayed in its log page.
  $this
    ->drupalGet('admin/config/system/cron/jobs/logs/ultimate_cron_logger_test_cron');
  $this
    ->assertRaw('/core/misc/icons/73b355/check.svg');
  $this
    ->assertText('Launched in thread 1');
}