ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
LSUrlBuilderTest Class Reference
+ Inheritance diagram for LSUrlBuilderTest:
+ Collaboration diagram for LSUrlBuilderTest:

Public Member Functions

 setUp ()
 
 testDataType ()
 
 testUrlConcatenation ()
 

Detailed Description

Definition at line 6 of file LSUrlBuilderTest.php.

Member Function Documentation

◆ setUp()

LSUrlBuilderTest::setUp ( )

Definition at line 8 of file LSUrlBuilderTest.php.

9  {
10  $data_factory = new Factory();
11  $uri = $data_factory->uri('http://ilias.de/somepath');
12  $this->ub = new LSUrlBuilder($uri);
13  }
Class LSUrlBuilder.
Builds data types.
Definition: Factory.php:14

◆ testDataType()

LSUrlBuilderTest::testDataType ( )

Definition at line 15 of file LSUrlBuilderTest.php.

16  {
17  $this->assertInstanceOf(ILIAS\Data\URI::class, $this->ub->getURL('x'));
18  }
Class BaseForm.

◆ testUrlConcatenation()

LSUrlBuilderTest::testUrlConcatenation ( )

Definition at line 20 of file LSUrlBuilderTest.php.

References LSUrlBuilder\PARAM_LSO_COMMAND, and LSUrlBuilder\PARAM_LSO_PARAMETER.

21  {
22  $uri = $this->ub->getURL('command', 123);
23  $expected = LSUrlBuilder::PARAM_LSO_COMMAND . '=command&'
25  $this->assertEquals($expected, $uri->query());
26  }
const PARAM_LSO_COMMAND
const PARAM_LSO_PARAMETER

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