26 lines
714 B
PHP
26 lines
714 B
PHP
<?php
|
|
|
|
class Security_Tokens extends \Codeception\TestCase\Test
|
|
{
|
|
/**
|
|
* Tests tokens CRUD
|
|
*/
|
|
public function testTokens_CRUD()
|
|
{
|
|
// global $config;
|
|
// global $mysqli;
|
|
// $mysqli = new DBConnection($config);
|
|
// global $tokentype;
|
|
// global $oToken;
|
|
// // grab token types first so we can test them all
|
|
// $token_types = $tokentype->getAll();
|
|
//
|
|
// foreach ($token_types as $tt)
|
|
// {
|
|
// // create
|
|
// $create_token = $oToken->createToken($tt['name'], 1);
|
|
// $this->assertStringMatchesFormat('%x', $create_token);
|
|
// $this->assertGreaterThan(16, strlen($create_token));
|
|
// }
|
|
}
|
|
} |