protected function BookMultilingualTest::assertBookItemIsCorrectlyTranslated in Drupal 10
Same name and namespace in other branches
- 9 core/modules/book/tests/src/Kernel/BookMultilingualTest.php \Drupal\Tests\book\Kernel\BookMultilingualTest::assertBookItemIsCorrectlyTranslated()
Asserts a book item is correctly translated.
@internal
Parameters
array $item: A book tree item.
string $langcode: The language code for the requested translation.
File
- core/
modules/ book/ tests/ src/ Kernel/ BookMultilingualTest.php, line 295
Class
- BookMultilingualTest
- Tests multilingual books.
Namespace
Drupal\Tests\book\KernelCode
protected function assertBookItemIsCorrectlyTranslated(array $item, string $langcode) : void {
$this
->assertNodeLinkIsCorrectlyTranslated($item['original_link']['nid'], $item['title'], $item['url'], $langcode);
}