<?php namespace Administration; require __DIR__ . '../../../core/initialize.php'; class Radar extends \PageHelper { public $isProtected = true; public $isAdminProtected = true; public $strTemplate = "Radar.html5.twig"; public function __construct() { parent::__construct(); $this->VerifyTheRight(\DroitsHelper::RADAR); } public function run() { $view = $this->template->render($this->arrayTemplate); $this->response->setContent($view); $this->response->send(); } } $class = new Radar(); $class->run();
public function testGetType() { $this->assertEquals('radar', $this->chart->getType()); }