protected function UnPublishedStateConstraintTest::setUp in Scheduler content moderation integration 8
Overrides SchedulerContentModerationTestBase::setUp
File
- tests/
src/ Kernel/ UnPublishedStateConstraintTest.php, line 19
Class
- UnPublishedStateConstraintTest
- Test covering the UnPublishedStateConstraintValidator.
Namespace
Drupal\Tests\scheduler_content_moderation_integration\KernelCode
protected function setUp() {
parent::setUp();
$user = $this
->createMock('Drupal\\Core\\Session\\AccountInterface');
$user
->method('hasPermission')
->willReturn(TRUE);
$this->container
->set('current_user', $user);
}