public function testCanReplaceViews()
{
$this->hooks->registerHandler('view_vars', 'js/interpreted.js', function ($h, $t, $v, $p) {
return ['__view_output' => 123];
});
$this->hooks->registerHandler('view', 'js/interpreted.js', function ($h, $t, $v, $p) {
$this->fail('view hook was called though __view_output was set.');
});
$this->assertSame("123", $this->views->renderView('js/interpreted.js'));
}