public function testIsEnabled() { Config::set('hyperframework.web.csrf_protection.enable', false); $this->assertFalse(CsrfProtection::isEnabled()); }
/** * @return void */ protected function checkCsrf() { if (CsrfProtection::isEnabled()) { CsrfProtection::run(); } }