ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\UI\URLBuilderTokenTest Class Reference
+ Inheritance diagram for ILIAS\UI\URLBuilderTokenTest:
+ Collaboration diagram for ILIAS\UI\URLBuilderTokenTest:

Public Member Functions

 testConstruct ()
 
 testTokenLength ()
 
 testTokenName ()
 

Detailed Description

Definition at line 25 of file URLBuilderTokenTest.php.

Member Function Documentation

◆ testConstruct()

ILIAS\UI\URLBuilderTokenTest::testConstruct ( )

Definition at line 27 of file URLBuilderTokenTest.php.

References $token.

27  : void
28  {
29  $token = new URLBuilderToken(['test'], 'foo');
30  $this->assertInstanceOf(URLBuilderToken::class, $token);
31  $this->assertIsString($token->getToken());
32  $this->assertNotEmpty($token->getToken());
33  }
$token
Definition: xapitoken.php:70

◆ testTokenLength()

ILIAS\UI\URLBuilderTokenTest::testTokenLength ( )

Definition at line 35 of file URLBuilderTokenTest.php.

References $token, and ILIAS\UI\URLBuilderToken\TOKEN_LENGTH.

35  : void
36  {
37  $token = new URLBuilderToken(['test'], 'foo');
38  $this->assertEquals(URLBuilderToken::TOKEN_LENGTH, strlen($token->getToken()));
39  }
$token
Definition: xapitoken.php:70

◆ testTokenName()

ILIAS\UI\URLBuilderTokenTest::testTokenName ( )

Definition at line 41 of file URLBuilderTokenTest.php.

References $token.

41  : void
42  {
43  $token = new URLBuilderToken(['test'], 'foo');
44  $this->assertEquals('test_foo', $token->getName());
45  }
$token
Definition: xapitoken.php:70

The documentation for this class was generated from the following file: