ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
FileTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\DAVACL\FS
;
4
5
class
FileTest
extends
\PHPUnit_Framework_TestCase
{
6
12
protected
$sut
;
13
14
protected
$path
=
'foo'
;
15
protected
$acl
= [
16
[
17
'privilege'
=>
'{DAV:}read'
,
18
'principal'
=>
'{DAV:}authenticated'
,
19
]
20
];
21
22
protected
$owner
=
'principals/evert'
;
23
24
function
setUp
() {
25
26
$this->sut =
new
File
($this->path, $this->acl, $this->owner);
27
28
}
29
30
function
testGetOwner
() {
31
32
$this->assertEquals(
33
$this->owner,
34
$this->sut->getOwner()
35
);
36
37
}
38
39
function
testGetGroup
() {
40
41
$this->assertNull(
42
$this->sut->getGroup()
43
);
44
45
}
46
47
function
testGetACL
() {
48
49
$this->assertEquals(
50
$this->acl,
51
$this->sut->getACL()
52
);
53
54
}
55
59
function
testSetAcl
() {
60
61
$this->sut->setACL([]);
62
63
}
64
65
function
testGetSupportedPrivilegeSet
() {
66
67
$this->assertNull(
68
$this->sut->getSupportedPrivilegeSet()
69
);
70
71
}
72
73
}
File
Sabre\DAVACL\FS
Definition:
Collection.php:3
Sabre\DAVACL\FS\FileTest\testSetAcl
testSetAcl()
Definition:
FileTest.php:59
Sabre\DAVACL\FS\FileTest\setUp
setUp()
Definition:
FileTest.php:24
Sabre\DAVACL\FS\FileTest\$path
$path
Definition:
FileTest.php:14
Sabre\DAVACL\FS\FileTest\testGetOwner
testGetOwner()
Definition:
FileTest.php:30
PHPUnit_Framework_TestCase
Sabre\DAVACL\FS\FileTest\testGetGroup
testGetGroup()
Definition:
FileTest.php:39
Sabre\DAVACL\FS\FileTest\testGetACL
testGetACL()
Definition:
FileTest.php:47
Sabre\DAVACL\FS\FileTest\testGetSupportedPrivilegeSet
testGetSupportedPrivilegeSet()
Definition:
FileTest.php:65
Sabre\DAVACL\FS\FileTest\$acl
$acl
Definition:
FileTest.php:15
php
Sabre\DAVACL\FS\FileTest
Definition:
FileTest.php:5
Sabre\DAVACL\FS\FileTest\$sut
$sut
Definition:
FileTest.php:12
Sabre\DAVACL\FS\FileTest\$owner
$owner
Definition:
FileTest.php:22
libs
composer
vendor
sabre
dav
tests
Sabre
DAVACL
FS
FileTest.php
Generated on Thu Jan 16 2025 19:01:52 for ILIAS by
1.8.13 (using
Doxyfile
)