protected function MigrateTestBase::setTestLogger in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::setTestLogger()
- 10 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::setTestLogger()
Injects the test logger into the container.
2 calls to MigrateTestBase::setTestLogger()
- MigrateLookupTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateLookupTest.php - MigrateStubTest::setUp in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateStubTest.php
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateTestBase.php, line 269
Class
- MigrateTestBase
- Creates abstract base class for migration tests.
Namespace
Drupal\Tests\migrate\KernelCode
protected function setTestLogger() {
$this->logger = $this
->prophesize(LoggerChannelInterface::class);
$this->container
->set('logger.channel.migrate', $this->logger
->reveal());
\Drupal::setContainer($this->container);
}