You are here

public function BookManagerTest::testGetBookParents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 78
Contains \Drupal\Tests\book\Unit\BookManagerTest.

Class

BookManagerTest
@coversDefaultClass \Drupal\book\BookManager @group book

Namespace

Drupal\Tests\book\Unit

Code

public function testGetBookParents($book, $parent, $expected) {
  $this
    ->assertEquals($expected, $this->bookManager
    ->getBookParents($book, $parent));
}