MigrateTestBase::$logger
Same name in other branches
- 8.9.x core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::logger
- 10 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::logger
- 11.x 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\KernelCode
protected $logger;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.