| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function testTrackTemplatesUsed() |
||
| 27 | { |
||
| 28 | $this->get('/Security/login'); |
||
| 29 | |||
| 30 | $templates = TemplateParserProxy::getTemplatesUsed(); |
||
| 31 | |||
| 32 | $this->assertNotEmpty($templates); |
||
| 33 | $this->assertContains('/framework/templates/SilverStripe/Forms/Includes/Form.ss', $templates); |
||
| 34 | $this->assertContains('/framework/templates/SilverStripe/Forms/TextField.ss', $templates); |
||
| 35 | |||
| 36 | $this->assertFalse(TemplateParserProxy::getCached()); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |