Mercurial > hg > isophonics-drupal-site
comparison core/tests/Drupal/Tests/Component/Datetime/TimeTest.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
35 * {@inheritdoc} | 35 * {@inheritdoc} |
36 */ | 36 */ |
37 protected function setUp() { | 37 protected function setUp() { |
38 parent::setUp(); | 38 parent::setUp(); |
39 | 39 |
40 $this->requestStack = $this->getMock('Symfony\Component\HttpFoundation\RequestStack'); | 40 $this->requestStack = $this->getMockBuilder('Symfony\Component\HttpFoundation\RequestStack')->getMock(); |
41 | |
42 $this->time = new Time($this->requestStack); | 41 $this->time = new Time($this->requestStack); |
43 } | 42 } |
44 | 43 |
45 /** | 44 /** |
46 * Tests the getRequestTime method. | 45 * Tests the getRequestTime method. |