protected function MigrationPluginsAltererTest::setUp

File

paragraphs/tests/src/Unit/migrate/MigrationPluginsAltererTest.php, line 30

Class

MigrationPluginsAltererTest
Tests the MigrationPluginsAlterer service.

Namespace

Drupal\Tests\paragraphs\Unit\migrate

Code

protected function setUp() : void {
  parent::setUp();
  $logger_channel = $this
    ->createMock('Drupal\\Core\\Logger\\LoggerChannelInterface');
  $logger_factory = $this
    ->createMock('Drupal\\Core\\Logger\\LoggerChannelFactoryInterface');
  $logger_factory
    ->expects($this
    ->atLeastOnce())
    ->method('get')
    ->with('paragraphs')
    ->willReturn($logger_channel);
  $this->paragraphsMigrationPluginsAlterer = new MigrationPluginsAlterer($logger_factory);
}