protected function BookUninstallValidatorTest::setUp 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::setUp()
Overrides UnitTestCase::setUp
File
- core/
modules/ book/ tests/ src/ Unit/ BookUninstallValidatorTest.php, line 29 - Contains \Drupal\Tests\book\Unit\BookUninstallValidatorTest.
Class
- BookUninstallValidatorTest
- @coversDefaultClass \Drupal\book\BookUninstallValidator @group book
Namespace
Drupal\Tests\book\UnitCode
protected function setUp() {
parent::setUp();
$this->bookUninstallValidator = $this
->getMockBuilder('Drupal\\book\\BookUninstallValidator')
->disableOriginalConstructor()
->setMethods([
'hasBookOutlines',
'hasBookNodes',
])
->getMock();
$this->bookUninstallValidator
->setStringTranslation($this
->getStringTranslationStub());
}