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

Public Member Functions

 setUp ()
 
 testCollectionGet ()
 
- Public Member Functions inherited from Sabre\DAV\AbstractServer
 setUp ()
 
 tearDown ()
 

Additional Inherited Members

- Protected Member Functions inherited from Sabre\DAV\AbstractServer
 getRootNode ()
 
- Protected Attributes inherited from Sabre\DAV\AbstractServer
 $response
 
 $request
 
 $server
 
 $tempDir = SABRE_TEMPDIR
 

Detailed Description

Definition at line 10 of file MapGetToPropFindTest.php.

Member Function Documentation

◆ setUp()

Sabre\DAV\Browser\MapGetToPropFindTest::setUp ( )

Definition at line 12 of file MapGetToPropFindTest.php.

12  {
13 
14  parent::setUp();
15  $this->server->addPlugin(new MapGetToPropFind());
16 
17  }

◆ testCollectionGet()

Sabre\DAV\Browser\MapGetToPropFindTest::testCollectionGet ( )

Definition at line 19 of file MapGetToPropFindTest.php.

References Sabre\DAV\AbstractServer\$request, Sabre\HTTP\Sapi\createFromServerArray(), and Sabre\DAV\Version\VERSION.

19  {
20 
21  $serverVars = [
22  'REQUEST_URI' => '/',
23  'REQUEST_METHOD' => 'GET',
24  ];
25 
27  $request->setBody('');
28  $this->server->httpRequest = ($request);
29  $this->server->exec();
30 
31  $this->assertEquals(207, $this->response->status, 'Incorrect status response received. Full response body: ' . $this->response->body);
32  $this->assertEquals([
33  'X-Sabre-Version' => [DAV\Version::VERSION],
34  'Content-Type' => ['application/xml; charset=utf-8'],
35  'DAV' => ['1, 3, extended-mkcol'],
36  'Vary' => ['Brief,Prefer'],
37  ],
38  $this->response->getHeaders()
39  );
40 
41  }
const VERSION
Full version number.
Definition: Version.php:17
static createFromServerArray(array $serverArray)
This static method will create a new Request object, based on a PHP $_SERVER array.
Definition: Sapi.php:107
+ Here is the call graph for this function:

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