public function testGetViewer() { $viewer = CMTest_TH::createUser(); $render = new CM_Frontend_Render(new CM_Frontend_Environment(null, $viewer)); $this->assertEquals($viewer, $render->getViewer()); $render = new CM_Frontend_Render(); $this->assertNull($render->getViewer()); }