private function ConfigEntityDependencyCollectorTest::createTestNode in Dependency Calculation 8
Creates a test node with a given langcode.
Parameters
string $langcode: Language code.
Return value
\Drupal\node\NodeInterface Test node.
1 call to ConfigEntityDependencyCollectorTest::createTestNode()
- ConfigEntityDependencyCollectorTest::testLanguageConfigEntitiesDependencyCalculation in tests/
src/ Kernel/ EventSubscriber/ DependencyCollector/ ConfigEntityDependencyCollectorTest.php - Tests language config dependencies calculation.
File
- tests/
src/ Kernel/ EventSubscriber/ DependencyCollector/ ConfigEntityDependencyCollectorTest.php, line 220
Class
- ConfigEntityDependencyCollectorTest
- Class ConfigEntityDependencyCollector.
Namespace
Drupal\Tests\depcalc\Kernel\EventSubscriber\DependencyCollectorCode
private function createTestNode(string $langcode) : NodeInterface {
return $this
->createNode([
'langcode' => $langcode,
'type' => 'article',
'title' => $this
->randomString(),
]);
}