protected function BookManagerTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/book/tests/src/Unit/BookManagerTest.php \Drupal\Tests\book\Unit\BookManagerTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
modules/ book/ tests/ src/ Unit/ BookManagerTest.php, line 64 - Contains \Drupal\Tests\book\Unit\BookManagerTest.
Class
- BookManagerTest
- @coversDefaultClass \Drupal\book\BookManager @group book
Namespace
Drupal\Tests\book\UnitCode
protected function setUp() {
$this->entityManager = $this
->getMock('Drupal\\Core\\Entity\\EntityManagerInterface');
$this->translation = $this
->getStringTranslationStub();
$this->configFactory = $this
->getConfigFactoryStub(array());
$this->bookOutlineStorage = $this
->getMock('Drupal\\book\\BookOutlineStorageInterface');
$this->renderer = $this
->getMock('\\Drupal\\Core\\Render\\RendererInterface');
$this->bookManager = new BookManager($this->entityManager, $this->translation, $this->configFactory, $this->bookOutlineStorage, $this->renderer);
}