ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\DAV\Browser\PropFindAllTest Class Reference
+ Inheritance diagram for Sabre\DAV\Browser\PropFindAllTest:
+ Collaboration diagram for Sabre\DAV\Browser\PropFindAllTest:

Public Member Functions

 testHandleSimple ()
 
 testHandleCallBack ()
 
 testSet ()
 
 testSetNull ()
 
 testGet404Properties ()
 
 testGet404PropertiesNothing ()
 

Detailed Description

Definition at line 5 of file PropFindAllTest.php.

Member Function Documentation

◆ testGet404Properties()

Sabre\DAV\Browser\PropFindAllTest::testGet404Properties ( )

Definition at line 48 of file PropFindAllTest.php.

48 {
49
50 $pf = new PropFindAll('foo');
51 $pf->set('{DAV:}displayname', null);
52 $this->assertEquals(
53 ['{DAV:}displayname'],
54 $pf->get404Properties()
55 );
56
57 }

◆ testGet404PropertiesNothing()

Sabre\DAV\Browser\PropFindAllTest::testGet404PropertiesNothing ( )

Definition at line 59 of file PropFindAllTest.php.

59 {
60
61 $pf = new PropFindAll('foo');
62 $pf->set('{DAV:}displayname', 'foo');
63 $this->assertEquals(
64 ['{http://sabredav.org/ns}idk'],
65 $pf->get404Properties()
66 );
67
68 }

◆ testHandleCallBack()

Sabre\DAV\Browser\PropFindAllTest::testHandleCallBack ( )

Definition at line 18 of file PropFindAllTest.php.

18 {
19
20 $pf = new PropFindAll('foo');
21 $pf->handle('{DAV:}displayname', function() { return 'foo'; });
22
23 $this->assertEquals(200, $pf->getStatus('{DAV:}displayname'));
24 $this->assertEquals('foo', $pf->get('{DAV:}displayname'));
25
26 }

◆ testHandleSimple()

Sabre\DAV\Browser\PropFindAllTest::testHandleSimple ( )

Definition at line 7 of file PropFindAllTest.php.

7 {
8
9 $pf = new PropFindAll('foo');
10 $pf->handle('{DAV:}displayname', 'foo');
11
12 $this->assertEquals(200, $pf->getStatus('{DAV:}displayname'));
13 $this->assertEquals('foo', $pf->get('{DAV:}displayname'));
14
15
16 }

◆ testSet()

Sabre\DAV\Browser\PropFindAllTest::testSet ( )

Definition at line 28 of file PropFindAllTest.php.

28 {
29
30 $pf = new PropFindAll('foo');
31 $pf->set('{DAV:}displayname', 'foo');
32
33 $this->assertEquals(200, $pf->getStatus('{DAV:}displayname'));
34 $this->assertEquals('foo', $pf->get('{DAV:}displayname'));
35
36 }

◆ testSetNull()

Sabre\DAV\Browser\PropFindAllTest::testSetNull ( )

Definition at line 38 of file PropFindAllTest.php.

38 {
39
40 $pf = new PropFindAll('foo');
41 $pf->set('{DAV:}displayname', null);
42
43 $this->assertEquals(404, $pf->getStatus('{DAV:}displayname'));
44 $this->assertEquals(null, $pf->get('{DAV:}displayname'));
45
46 }

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