You are here

public function ConfigDevelTestBase::setUp in Configuration development 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/ConfigDevelTestBase.php, line 31

Class

ConfigDevelTestBase
Helper class with mock objects.

Namespace

Drupal\Tests\config_devel\Unit

Code

public function setUp() {
  parent::setUp();
  $this->configFactory = $this
    ->createMock('Drupal\\Core\\Config\\ConfigFactoryInterface');
  $this->eventDispatcher = $this
    ->createMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
  $this->configManager = $this
    ->createMock('Drupal\\Core\\Config\\ConfigManagerInterface');
  $this->configManager
    ->expects($this
    ->any())
    ->method('getEntityTypeIdByName')
    ->will($this
    ->returnArgument(0));
  vfsStream::setup('public://');
}