protected function RouteSubscriberTest::setupEntityManager in Replicate UI 8
2 calls to RouteSubscriberTest::setupEntityManager()
- RouteSubscriberTest::testDisabledReplicateFunctionality in tests/
src/ Unit/ RouteSubscriberTest.php - @covers ::onRouteBuild
- RouteSubscriberTest::testEnabledReplicateFunctionality in tests/
src/ Unit/ RouteSubscriberTest.php - @covers ::onRouteBuild
File
- tests/
src/ Unit/ RouteSubscriberTest.php, line 64
Class
- RouteSubscriberTest
- @coversDefaultClass \Drupal\replicate_ui\RouteSubscriber @group replicate
Namespace
Drupal\Tests\replicate_ui\UnitCode
protected function setupEntityManager() {
$entity_manager = $this
->prophesize(EntityTypeManagerInterface::class);
$entity_manager
->getDefinitions()
->willReturn([
'entity_test_1' => new ContentEntityType([
'id' => 'entity_test_1',
'links' => [
'canonical' => '/entity_test_1/{entity_test_1}',
],
]),
'entity_test_2' => new ContentEntityType([
'id' => 'entity_test_2',
'links' => [
'canonical' => '/entity_test_2/{entity_test_2}',
],
]),
]);
return $entity_manager;
}