ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\DAVACL\FS\FileTest Class Reference
+ Inheritance diagram for Sabre\DAVACL\FS\FileTest:
+ Collaboration diagram for Sabre\DAVACL\FS\FileTest:

Public Member Functions

 setUp ()
 
 testGetOwner ()
 
 testGetGroup ()
 
 testGetACL ()
 
 testSetAcl ()
 @expectedException \Sabre\DAV\Exception\Forbidden More...
 
 testGetSupportedPrivilegeSet ()
 

Protected Attributes

 $sut
 
 $path = 'foo'
 
 $acl
 
 $owner = 'principals/evert'
 

Detailed Description

Definition at line 5 of file FileTest.php.

Member Function Documentation

◆ setUp()

Sabre\DAVACL\FS\FileTest::setUp ( )

Reimplemented in Sabre\DAVACL\FS\CollectionTest.

Definition at line 24 of file FileTest.php.

24 {
25
26 $this->sut = new File($this->path, $this->acl, $this->owner);
27
28 }

◆ testGetACL()

Sabre\DAVACL\FS\FileTest::testGetACL ( )

Definition at line 47 of file FileTest.php.

47 {
48
49 $this->assertEquals(
50 $this->acl,
51 $this->sut->getACL()
52 );
53
54 }

◆ testGetGroup()

Sabre\DAVACL\FS\FileTest::testGetGroup ( )

Definition at line 39 of file FileTest.php.

39 {
40
41 $this->assertNull(
42 $this->sut->getGroup()
43 );
44
45 }

◆ testGetOwner()

Sabre\DAVACL\FS\FileTest::testGetOwner ( )

Definition at line 30 of file FileTest.php.

30 {
31
32 $this->assertEquals(
33 $this->owner,
34 $this->sut->getOwner()
35 );
36
37 }

◆ testGetSupportedPrivilegeSet()

Sabre\DAVACL\FS\FileTest::testGetSupportedPrivilegeSet ( )

Definition at line 65 of file FileTest.php.

65 {
66
67 $this->assertNull(
68 $this->sut->getSupportedPrivilegeSet()
69 );
70
71 }

◆ testSetAcl()

Sabre\DAVACL\FS\FileTest::testSetAcl ( )

@expectedException \Sabre\DAV\Exception\Forbidden

Definition at line 59 of file FileTest.php.

59 {
60
61 $this->sut->setACL([]);
62
63 }

Field Documentation

◆ $acl

Sabre\DAVACL\FS\FileTest::$acl
protected
Initial value:
= [
[
'privilege' => '{DAV:}read',
'principal' => '{DAV:}authenticated',
]
]

Definition at line 15 of file FileTest.php.

◆ $owner

Sabre\DAVACL\FS\FileTest::$owner = 'principals/evert'
protected

Definition at line 22 of file FileTest.php.

◆ $path

Sabre\DAVACL\FS\FileTest::$path = 'foo'
protected

Definition at line 14 of file FileTest.php.

◆ $sut

Sabre\DAVACL\FS\FileTest::$sut
protected

Definition at line 12 of file FileTest.php.


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