You are here

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\Kernel

Code

protected function setUp() {
  parent::setUp();
  $user = $this
    ->createMock('Drupal\\Core\\Session\\AccountInterface');
  $user
    ->method('hasPermission')
    ->willReturn(TRUE);
  $this->container
    ->set('current_user', $user);
}