function TimeTest::setUp
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/Datetime/TimeTest.php \Drupal\Tests\Component\Datetime\TimeTest::setUp()
- 8.9.x core/tests/Drupal/Tests/Component/Datetime/TimeTest.php \Drupal\Tests\Component\Datetime\TimeTest::setUp()
- 10 core/tests/Drupal/Tests/Component/Datetime/TimeTest.php \Drupal\Tests\Component\Datetime\TimeTest::setUp()
File
-
core/
tests/ Drupal/ Tests/ Component/ Datetime/ TimeTest.php, line 40
Class
- TimeTest
- Tests the Time class.
Namespace
Drupal\Tests\Component\DatetimeCode
protected function setUp() : void {
parent::setUp();
$this->requestStack = $this->getMockBuilder('Symfony\\Component\\HttpFoundation\\RequestStack')
->getMock();
$this->time = new Time($this->requestStack);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.