public function NestedEntityReferencesDetectorTest::testCreate in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 4.0.x tests/src/Unit/Plugin/RelatedEntitiesDetector/NestedEntityReferencesDetectorTest.php \Drupal\Tests\lingotek\Unit\Plugin\RelatedEntitiesDetector\NestedEntityReferencesDetectorTest::testCreate()
- 3.4.x tests/src/Unit/Plugin/RelatedEntitiesDetector/NestedEntityReferencesDetectorTest.php \Drupal\Tests\lingotek\Unit\Plugin\RelatedEntitiesDetector\NestedEntityReferencesDetectorTest::testCreate()
- 3.5.x tests/src/Unit/Plugin/RelatedEntitiesDetector/NestedEntityReferencesDetectorTest.php \Drupal\Tests\lingotek\Unit\Plugin\RelatedEntitiesDetector\NestedEntityReferencesDetectorTest::testCreate()
- 3.6.x tests/src/Unit/Plugin/RelatedEntitiesDetector/NestedEntityReferencesDetectorTest.php \Drupal\Tests\lingotek\Unit\Plugin\RelatedEntitiesDetector\NestedEntityReferencesDetectorTest::testCreate()
- 3.7.x tests/src/Unit/Plugin/RelatedEntitiesDetector/NestedEntityReferencesDetectorTest.php \Drupal\Tests\lingotek\Unit\Plugin\RelatedEntitiesDetector\NestedEntityReferencesDetectorTest::testCreate()
@covers ::create
File
- tests/
src/ Unit/ Plugin/ RelatedEntitiesDetector/ NestedEntityReferencesDetectorTest.php, line 99
Class
- NestedEntityReferencesDetectorTest
- Unit test for the nested entitiy 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 = NestedEntityReferencesDetector::create($container, [], 'nested_entity_detector', []);
$this
->assertNotNull($detector);
}