protected function EntityListBuilderTest::setUp in Zircon Profile 8
Same name in this branch
- 8 core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php \Drupal\Tests\Core\Entity\EntityListBuilderTest::setUp()
- 8 core/modules/system/src/Tests/Entity/EntityListBuilderTest.php \Drupal\system\Tests\Entity\EntityListBuilderTest::setUp()
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php \Drupal\Tests\Core\Entity\EntityListBuilderTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityListBuilderTest.php, line 75 - Contains \Drupal\Tests\Core\Entity\EntityListBuilderTest.
Class
- EntityListBuilderTest
- @coversDefaultClass \Drupal\entity_test\EntityTestListBuilder @group Entity
Namespace
Drupal\Tests\Core\EntityCode
protected function setUp() {
parent::setUp();
$this->role = $this
->getMock('Drupal\\user\\RoleInterface');
$this->roleStorage = $this
->getMock('\\Drupal\\user\\RoleStorageInterface');
$this->moduleHandler = $this
->getMock('\\Drupal\\Core\\Extension\\ModuleHandlerInterface');
$this->entityType = $this
->getMock('\\Drupal\\Core\\Entity\\EntityTypeInterface');
$this->translationManager = $this
->getMock('\\Drupal\\Core\\StringTranslation\\TranslationInterface');
$this->entityListBuilder = new TestEntityListBuilder($this->entityType, $this->roleStorage, $this->moduleHandler);
$this->container = new ContainerBuilder();
\Drupal::setContainer($this->container);
}