public function listViews($viewtype = 'default')
{
if (empty($this->locations[$viewtype])) {
return [];
}
return array_keys($this->locations[$viewtype]);
}
public function testCanListViews() { $views = $this->views->listViews('default'); $this->assertTrue(in_array('interpreted.js', $views)); $this->assertTrue(in_array('static.js', $views)); $this->assertEmpty($this->views->listViews('fake_viewtype')); }