You are here

protected property MigrateTestBase::$logger in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::logger
  2. 10 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::logger

A logger prophecy object.

Using ::setTestLogger(), this prophecy will be configured and injected into the container. Using $this->logger->function(args)->shouldHaveBeenCalled() you can assert that the logger was called.

Type: \Prophecy\Prophecy\ObjectProphecy

File

core/modules/migrate/tests/src/Kernel/MigrateTestBase.php, line 59

Class

MigrateTestBase
Creates abstract base class for migration tests.

Namespace

Drupal\Tests\migrate\Kernel

Code

protected $logger;