function BookUninstallValidatorTest::testValidateNotBook
@covers ::validate
      
    
File
- 
              core/
modules/ book/ tests/ src/ Unit/ BookUninstallValidatorTest.php, line 36  
Class
- BookUninstallValidatorTest
 - @coversDefaultClass \Drupal\book\BookUninstallValidator[[api-linebreak]] @group book @group legacy
 
Namespace
Drupal\Tests\book\UnitCode
public function testValidateNotBook() : void {
  $this->bookUninstallValidator
    ->expects($this->never())
    ->method('hasBookOutlines');
  $this->bookUninstallValidator
    ->expects($this->never())
    ->method('hasBookNodes');
  $module = 'not_book';
  $expected = [];
  $reasons = $this->bookUninstallValidator
    ->validate($module);
  $this->assertEquals($expected, $reasons);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.