| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function testFluentLocaleAndFrontendAreAddedToDataQuery() |
||
| 19 | { |
||
| 20 | FluentState::singleton() |
||
| 21 | ->setLocale('test') |
||
| 22 | ->setIsFrontend(true); |
||
| 23 | |||
| 24 | /** @var \SilverStripe\ORM\DataQuery $query */ |
||
| 25 | $query = SiteTree::get()->dataQuery(); |
||
| 26 | $this->assertSame('test', $query->getQueryParam('Fluent.Locale')); |
||
| 27 | $this->assertTrue($query->getQueryParam('Fluent.IsFrontend')); |
||
|
|
|||
| 28 | } |
||
| 36 |