public function NestedErViewmodeEntitiesDetectorTest::testCreate in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 4.0.x tests/src/Unit/Plugin/RelatedEntitiesDetector/NestedErViewmodeEntitiesDetectorTest.php \Drupal\Tests\lingotek\Unit\Plugin\RelatedEntitiesDetector\NestedErViewmodeEntitiesDetectorTest::testCreate()
- 3.4.x tests/src/Unit/Plugin/RelatedEntitiesDetector/NestedErViewmodeEntitiesDetectorTest.php \Drupal\Tests\lingotek\Unit\Plugin\RelatedEntitiesDetector\NestedErViewmodeEntitiesDetectorTest::testCreate()
- 3.5.x tests/src/Unit/Plugin/RelatedEntitiesDetector/NestedErViewmodeEntitiesDetectorTest.php \Drupal\Tests\lingotek\Unit\Plugin\RelatedEntitiesDetector\NestedErViewmodeEntitiesDetectorTest::testCreate()
- 3.7.x tests/src/Unit/Plugin/RelatedEntitiesDetector/NestedErViewmodeEntitiesDetectorTest.php \Drupal\Tests\lingotek\Unit\Plugin\RelatedEntitiesDetector\NestedErViewmodeEntitiesDetectorTest::testCreate()
- 3.8.x tests/src/Unit/Plugin/RelatedEntitiesDetector/NestedErViewmodeEntitiesDetectorTest.php \Drupal\Tests\lingotek\Unit\Plugin\RelatedEntitiesDetector\NestedErViewmodeEntitiesDetectorTest::testCreate()
@covers ::create
File
- tests/
src/ Unit/ Plugin/ RelatedEntitiesDetector/ NestedErViewmodeEntitiesDetectorTest.php, line 99
Class
- NestedErViewmodeEntitiesDetectorTest
- Unit test for the nested entity references views mode detector plugin
Namespace
Drupal\Tests\lingotek\Unit\Plugin\RelatedEntitiesDetectorCode
public function testCreate() {
$container = $this
->createMock(ContainerInterface::class);
$container
->expects($this
->exactly(3))
->method('get')
->withConsecutive([
'entity_type.manager',
], [
'entity_field.manager',
], [
'lingotek.configuration',
])
->willReturnOnConsecutiveCalls($this->entityTypeManager, $this->entityFieldManager, $this->lingotekConfiguration);
$detector = NestedErViewmodeEntitiesDetector::create($container, [], 'nested_er_viewmode_entities', []);
$this
->assertNotNull($detector);
}