You are here

protected function BlockFormTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/block/tests/src/Unit/BlockFormTest.php \Drupal\Tests\block\Unit\BlockFormTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/block/tests/src/Unit/BlockFormTest.php, line 65
Contains \Drupal\Tests\block\Unit\BlockFormTest.

Class

BlockFormTest
@coversDefaultClass \Drupal\block\BlockForm @group block

Namespace

Drupal\Tests\block\Unit

Code

protected function setUp() {
  parent::setUp();
  $this->conditionManager = $this
    ->getMock('Drupal\\Core\\Executable\\ExecutableManagerInterface');
  $this->language = $this
    ->getMock('Drupal\\Core\\Language\\LanguageManagerInterface');
  $this->contextRepository = $this
    ->getMock('Drupal\\Core\\Plugin\\Context\\ContextRepositoryInterface');
  $this->entityManager = $this
    ->getMock('Drupal\\Core\\Entity\\EntityManagerInterface');
  $this->storage = $this
    ->getMock('Drupal\\Core\\Config\\Entity\\ConfigEntityStorageInterface');
  $this->themeHandler = $this
    ->getMock('Drupal\\Core\\Extension\\ThemeHandlerInterface');
  $this->entityManager
    ->expects($this
    ->any())
    ->method('getStorage')
    ->will($this
    ->returnValue($this->storage));
}