function BookManagerTest::testGetBookParents

Tests the getBookParents() method.

@dataProvider providerTestGetBookParents

File

core/modules/book/tests/src/Unit/BookManagerTest.php, line 98

Class

BookManagerTest
@coversDefaultClass \Drupal\book\BookManager[[api-linebreak]] @group book @group legacy

Namespace

Drupal\Tests\book\Unit

Code

public function testGetBookParents($book, $parent, $expected) : void {
  $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.