public function BookUninstallValidatorTest::testValidateNotBook in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/book/tests/src/Unit/BookUninstallValidatorTest.php \Drupal\Tests\book\Unit\BookUninstallValidatorTest::testValidateNotBook()
@covers ::validate
File
- core/
modules/ book/ tests/ src/ Unit/ BookUninstallValidatorTest.php, line 41 - Contains \Drupal\Tests\book\Unit\BookUninstallValidatorTest.
Class
- BookUninstallValidatorTest
- @coversDefaultClass \Drupal\book\BookUninstallValidator @group book
Namespace
Drupal\Tests\book\UnitCode
public function testValidateNotBook() {
$this->bookUninstallValidator
->expects($this
->never())
->method('hasBookOutlines');
$this->bookUninstallValidator
->expects($this
->never())
->method('hasBookNodes');
$module = 'not_book';
$expected = [];
$reasons = $this->bookUninstallValidator
->validate($module);
$this
->assertSame($expected, $this
->castSafeStrings($reasons));
}