コード例 #1
0
ファイル: TokenTest.php プロジェクト: Folcky/kanboard
 public function testCSRFTokens()
 {
     $token = new Token($this->container);
     $t1 = $token->getCSRFToken();
     $this->assertNotEmpty($t1);
     $this->assertTrue($token->validateCSRFToken($t1));
     $this->assertFalse($token->validateCSRFToken($t1));
 }