protected function PreviewLinkSessionTokenTest::setUp in Preview Link 2.x
Same name and namespace in other branches
- 2.0.x tests/src/Functional/PreviewLinkSessionTokenTest.php \Drupal\Tests\preview_link\Functional\PreviewLinkSessionTokenTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ PreviewLinkSessionTokenTest.php, line 43
Class
- PreviewLinkSessionTokenTest
- Tests tokens claimed against sessions.
Namespace
Drupal\Tests\preview_link\FunctionalCode
protected function setUp() {
parent::setUp();
$timeMachine = \Drupal::service('datetime.time');
assert($timeMachine instanceof TimeMachine);
$currentTime = new \DateTime('14 May 2014 14:00:00');
$timeMachine
->setTime($currentTime);
/** @var \Drupal\preview_link_test\StateLogger $logger */
$logger = \Drupal::service('logger.preview_link_test');
$logger
->cleanLogs();
}