protected function TimeTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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 37
Class
- TimeTest
- @coversDefaultClass \Drupal\Component\Datetime\Time @group Datetime
Namespace
Drupal\Tests\Component\DatetimeCode
protected function setUp() {
parent::setUp();
$this->requestStack = $this
->getMockBuilder('Symfony\\Component\\HttpFoundation\\RequestStack')
->getMock();
$this->time = new Time($this->requestStack);
}