Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function testForTemplate() |
||
37 | { |
||
38 | $element = $this->objFromFixture(TestElement::class, 'element1'); |
||
39 | // Although we read from Versioned::DRAFT, Versioned will still block draft content view permissions |
||
40 | $this->logInWithPermission('ADMIN'); |
||
41 | $controller = new TestElementController($element); |
||
42 | |||
43 | $this->assertContains('Hello Test', $controller->forTemplate()); |
||
44 | } |
||
46 |