You are here

protected function MigrationPluginsAltererTest::setUp in Paragraphs 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/migrate/MigrationPluginsAltererTest.php, line 29

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
    ->getMockBuilder('Drupal\\Core\\Logger\\LoggerChannelFactory')
    ->getMock();
  $logger_factory
    ->expects($this
    ->atLeastOnce())
    ->method('get')
    ->with('paragraphs')
    ->will($this
    ->returnValue($logger_channel));
  $this->paragraphsMigrationPluginsAlterer = new MigrationPluginsAlterer($logger_factory);
}