public function showIframe2($request, $response) { $this->container->view->render($response, 'csrf-01/iframe2.html.twig', ['domain' => \Hackyou\Config::getHackmeDomain()]); return $response; }
public function testGetHackmeDomain() { $this->assertEquals('tp-hackme.herokuapp.com', \Hackyou\Config::getHackmeDomain()); putenv('HACKME_DOMAIN=subdomain.herokuapp.com'); $this->assertEquals('subdomain.herokuapp.com', \Hackyou\Config::getHackmeDomain()); }