@@ -9,35 +9,35 @@ |
||
| 9 | 9 | |
| 10 | 10 | class DatedUpdateHolderControllerTest extends FunctionalTest |
| 11 | 11 | { |
| 12 | - protected static $fixture_file = 'EventHolderTest.yml'; |
|
| 12 | + protected static $fixture_file = 'EventHolderTest.yml'; |
|
| 13 | 13 | |
| 14 | - protected static $use_draft_site = true; |
|
| 14 | + protected static $use_draft_site = true; |
|
| 15 | 15 | |
| 16 | - protected function setUp() |
|
| 17 | - { |
|
| 18 | - parent::setUp(); |
|
| 16 | + protected function setUp() |
|
| 17 | + { |
|
| 18 | + parent::setUp(); |
|
| 19 | 19 | |
| 20 | - // Note: this test requires the starter theme to be installed |
|
| 21 | - Config::inst()->update(SSViewer::class, 'theme', 'starter'); |
|
| 22 | - } |
|
| 20 | + // Note: this test requires the starter theme to be installed |
|
| 21 | + Config::inst()->update(SSViewer::class, 'theme', 'starter'); |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | - public function testSettingDateFiltersInReverseOrderShowsMessage() |
|
| 25 | - { |
|
| 26 | - /** @var EventHolder $holder */ |
|
| 27 | - $holder = $this->objFromFixture(EventHolder::class, 'EventHolder1'); |
|
| 24 | + public function testSettingDateFiltersInReverseOrderShowsMessage() |
|
| 25 | + { |
|
| 26 | + /** @var EventHolder $holder */ |
|
| 27 | + $holder = $this->objFromFixture(EventHolder::class, 'EventHolder1'); |
|
| 28 | 28 | |
| 29 | - $result = $this->get($holder->Link() . '?from=2018-01-10&to=2018-01-01'); |
|
| 29 | + $result = $this->get($holder->Link() . '?from=2018-01-10&to=2018-01-01'); |
|
| 30 | 30 | |
| 31 | - $this->assertContains('Filter has been applied with the dates reversed', $result->getBody()); |
|
| 32 | - } |
|
| 31 | + $this->assertContains('Filter has been applied with the dates reversed', $result->getBody()); |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | - public function testSettingFromButNotToDateShowsMessage() |
|
| 35 | - { |
|
| 36 | - /** @var EventHolder $holder */ |
|
| 37 | - $holder = $this->objFromFixture(EventHolder::class, 'EventHolder1'); |
|
| 34 | + public function testSettingFromButNotToDateShowsMessage() |
|
| 35 | + { |
|
| 36 | + /** @var EventHolder $holder */ |
|
| 37 | + $holder = $this->objFromFixture(EventHolder::class, 'EventHolder1'); |
|
| 38 | 38 | |
| 39 | - $result = $this->get($holder->Link() . '?from=2018-01-10'); |
|
| 39 | + $result = $this->get($holder->Link() . '?from=2018-01-10'); |
|
| 40 | 40 | |
| 41 | - $this->assertContains('Filtered by a single date', $result->getBody()); |
|
| 42 | - } |
|
| 41 | + $this->assertContains('Filtered by a single date', $result->getBody()); |
|
| 42 | + } |
|
| 43 | 43 | } |