ILIAS  release_8 Revision v8.23
ilWACPathTest Class Reference
+ Inheritance diagram for ilWACPathTest:
+ Collaboration diagram for ilWACPathTest:

Public Member Functions

 testMobs ()
 
 testUserImage ()
 
 testBlogInSec ()
 
 testSubfolders ()
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 25 of file ilWACPathTest.php.

Member Function Documentation

◆ testBlogInSec()

ilWACPathTest::testBlogInSec ( )

Definition at line 54 of file ilWACPathTest.php.

54  : void
55  {
56  $ilWacPath = new ilWACPath('http://trunk.local/data/trunk/sec/ilBlog/blog_123/Header.mp4', false);
57  $this->assertEquals('ilBlog', $ilWacPath->getModuleType());
58  $this->assertEquals('./data/trunk/sec/ilBlog/', $ilWacPath->getModulePath());
59  $this->assertEquals('blog_123', $ilWacPath->getModuleIdentifier());
60  $this->assertEquals('Header.mp4', $ilWacPath->getAppendix());
61  $this->assertEquals('trunk', $ilWacPath->getClient());
62  $this->assertTrue($ilWacPath->isInSecFolder());
63  $this->assertTrue($ilWacPath->isStreamable());
64  $this->assertTrue($ilWacPath->isVideo());
65  $this->assertFalse($ilWacPath->isAudio());
66  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ testMobs()

ilWACPathTest::testMobs ( )

Definition at line 27 of file ilWACPathTest.php.

27  : void
28  {
29  $ilWacPath = new ilWACPath('http://trunk.local/data/trunk/mobs/mm_270/Koeniz_Komturei1.jpg', false);
30  $this->assertEquals('mobs', $ilWacPath->getModuleType());
31  $this->assertEquals('mm_270', $ilWacPath->getModuleIdentifier());
32  $this->assertEquals('Koeniz_Komturei1.jpg', $ilWacPath->getAppendix());
33  $this->assertEquals('trunk', $ilWacPath->getClient());
34  $this->assertFalse($ilWacPath->isInSecFolder());
35  $this->assertFalse($ilWacPath->isStreamable());
36  $this->assertFalse($ilWacPath->isVideo());
37  $this->assertFalse($ilWacPath->isAudio());
38  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ testSubfolders()

ilWACPathTest::testSubfolders ( )

Definition at line 68 of file ilWACPathTest.php.

68  : void
69  {
70  $ilWacPathBase = new ilWACPath('http://trunk.local/data/trunk/lm_data/lm_123456/start.html', false);
71  $ilWacPathSub = new ilWACPath('http://trunk.local/data/trunk/lm_data/lm_123456/subfolder/image.png', false);
72  $this->assertEquals($ilWacPathBase->getModulePath(), $ilWacPathSub->getModulePath());
73  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ testUserImage()

ilWACPathTest::testUserImage ( )

Definition at line 40 of file ilWACPathTest.php.

40  : void
41  {
42  $ilWacPath = new ilWACPath('http://trunk.local/data/trunk/usr_images/usr_6_small.jpg?t=63944', false);
43  $this->assertEquals('usr_images', $ilWacPath->getModuleType());
44  $this->assertEquals('./data/trunk/usr_images/', $ilWacPath->getModulePath());
45  $this->assertEquals(null, $ilWacPath->getModuleIdentifier());
46  $this->assertEquals('usr_6_small.jpg', $ilWacPath->getAppendix());
47  $this->assertEquals('trunk', $ilWacPath->getClient());
48  $this->assertFalse($ilWacPath->isInSecFolder());
49  $this->assertFalse($ilWacPath->isStreamable());
50  $this->assertFalse($ilWacPath->isVideo());
51  $this->assertFalse($ilWacPath->isAudio());
52  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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