function ForumUninstallValidatorTest::setUp
Same name and namespace in other branches
- 8.9.x core/modules/forum/tests/src/Unit/ForumUninstallValidatorTest.php \Drupal\Tests\forum\Unit\ForumUninstallValidatorTest::setUp()
- 10 core/modules/forum/tests/src/Unit/ForumUninstallValidatorTest.php \Drupal\Tests\forum\Unit\ForumUninstallValidatorTest::setUp()
- 11.x core/modules/forum/tests/src/Unit/ForumUninstallValidatorTest.php \Drupal\Tests\forum\Unit\ForumUninstallValidatorTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
modules/ forum/ tests/ src/ Unit/ ForumUninstallValidatorTest.php, line 22
Class
- ForumUninstallValidatorTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21forum%21src%21ForumUninstallValidator.php/class/ForumUninstallValidator/9" title="Prevents forum module from being uninstalled under certain conditions." class="local">\Drupal\forum\ForumUninstallValidator</a> @group forum
Namespace
Drupal\Tests\forum\UnitCode
protected function setUp() : void {
parent::setUp();
$this->forumUninstallValidator = $this->getMockBuilder('Drupal\\forum\\ForumUninstallValidator')
->disableOriginalConstructor()
->onlyMethods([
'hasForumNodes',
'hasTermsForVocabulary',
'getForumVocabulary',
])
->getMock();
$this->forumUninstallValidator
->setStringTranslation($this->getStringTranslationStub());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.