ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Component\Tests\Resource\ComponentResourceTest Class Reference
+ Inheritance diagram for ILIAS\Component\Tests\Resource\ComponentResourceTest:
+ Collaboration diagram for ILIAS\Component\Tests\Resource\ComponentResourceTest:

Public Member Functions

 testTarget1 ()
 
 testTarget2 ()
 
 testTarget3 ()
 
 testHtaccessIsAllowedAsSource ()
 
 testDotIsAllowedAsTarget ()
 
 testSource ()
 

Detailed Description

Definition at line 27 of file ComponentResourceTest.php.

Member Function Documentation

◆ testDotIsAllowedAsTarget()

ILIAS\Component\Tests\Resource\ComponentResourceTest::testDotIsAllowedAsTarget ( )

Definition at line 73 of file ComponentResourceTest.php.

74  {
75  $public_asset = new R\OfComponent(
76  new \ILIAS\Component(),
77  "foo.php",
78  "."
79  );
80 
81  $this->assertTrue(true);
82  }
Interface Observer Contains several chained tasks and infos about them.
An public asset that is a resource of some component.
Definition: OfComponent.php:26

◆ testHtaccessIsAllowedAsSource()

ILIAS\Component\Tests\Resource\ComponentResourceTest::testHtaccessIsAllowedAsSource ( )

Definition at line 62 of file ComponentResourceTest.php.

63  {
64  $public_asset = new R\OfComponent(
65  new \ILIAS\Component(),
66  ".htaccess",
67  "target"
68  );
69 
70  $this->assertTrue(true);
71  }
Interface Observer Contains several chained tasks and infos about them.
An public asset that is a resource of some component.
Definition: OfComponent.php:26

◆ testSource()

ILIAS\Component\Tests\Resource\ComponentResourceTest::testSource ( )

Definition at line 84 of file ComponentResourceTest.php.

85  {
86  $public_asset = new R\OfComponent(
87  new \ILIAS\Component(),
88  "directory/asset.png",
89  "some/target"
90  );
91 
92  $this->assertEquals("components/ILIAS/Component/resources/directory/asset.png", $public_asset->getSource());
93  }
Interface Observer Contains several chained tasks and infos about them.
An public asset that is a resource of some component.
Definition: OfComponent.php:26

◆ testTarget1()

ILIAS\Component\Tests\Resource\ComponentResourceTest::testTarget1 ( )

Definition at line 29 of file ComponentResourceTest.php.

30  {
31  $public_asset = new R\OfComponent(
32  new \ILIAS\Component(),
33  "asset.png",
34  "some/target"
35  );
36 
37  $this->assertEquals("some/target/asset.png", $public_asset->getTarget());
38  }
Interface Observer Contains several chained tasks and infos about them.
An public asset that is a resource of some component.
Definition: OfComponent.php:26

◆ testTarget2()

ILIAS\Component\Tests\Resource\ComponentResourceTest::testTarget2 ( )

Definition at line 40 of file ComponentResourceTest.php.

41  {
42  $public_asset = new R\OfComponent(
43  new \ILIAS\Component(),
44  "directory/asset.png",
45  "some/target"
46  );
47 
48  $this->assertEquals("some/target/asset.png", $public_asset->getTarget());
49  }
Interface Observer Contains several chained tasks and infos about them.
An public asset that is a resource of some component.
Definition: OfComponent.php:26

◆ testTarget3()

ILIAS\Component\Tests\Resource\ComponentResourceTest::testTarget3 ( )

Definition at line 51 of file ComponentResourceTest.php.

52  {
53  $public_asset = new R\OfComponent(
54  new \ILIAS\Component(),
55  "directory/asset.png",
56  "some/target"
57  );
58 
59  $this->assertEquals("some/target/asset.png", $public_asset->getTarget());
60  }
Interface Observer Contains several chained tasks and infos about them.
An public asset that is a resource of some component.
Definition: OfComponent.php:26

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