You are here

protected function PublishedStateConstraintTest::setUp in Scheduler content moderation integration 8

Overrides SchedulerContentModerationTestBase::setUp

File

tests/src/Kernel/PublishedStateConstraintTest.php, line 19

Class

PublishedStateConstraintTest
Test covering the PublishedStateConstraintValidator.

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);
}