function BookManagerTest::testGetBookParents
Same name in other branches
- 8.9.x core/modules/book/tests/src/Unit/BookManagerTest.php \Drupal\Tests\book\Unit\BookManagerTest::testGetBookParents()
- 10 core/modules/book/tests/src/Unit/BookManagerTest.php \Drupal\Tests\book\Unit\BookManagerTest::testGetBookParents()
- 11.x core/modules/book/tests/src/Unit/BookManagerTest.php \Drupal\Tests\book\Unit\BookManagerTest::testGetBookParents()
Tests the getBookParents() method.
@dataProvider providerTestGetBookParents
File
-
core/
modules/ book/ tests/ src/ Unit/ BookManagerTest.php, line 93
Class
- BookManagerTest
- @coversDefaultClass \Drupal\book\BookManager @group book
Namespace
Drupal\Tests\book\UnitCode
public function testGetBookParents($book, $parent, $expected) {
$this->assertEquals($expected, $this->bookManager
->getBookParents($book, $parent));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.