|
|
|
@ -53,18 +53,36 @@ class AnonymousOptionsTest extends TestCase { |
|
|
|
|
public function testAnonymousOptionsRoot() { |
|
|
|
|
$response = $this->sendRequest('OPTIONS', ''); |
|
|
|
|
|
|
|
|
|
$this->assertEquals(200, $response->getStatus()); |
|
|
|
|
$this->assertEquals(401, $response->getStatus()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function testAnonymousOptionsNonRoot() { |
|
|
|
|
$response = $this->sendRequest('OPTIONS', 'foo'); |
|
|
|
|
|
|
|
|
|
$this->assertEquals(200, $response->getStatus()); |
|
|
|
|
$this->assertEquals(401, $response->getStatus()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function testAnonymousOptionsNonRootSubDir() { |
|
|
|
|
$response = $this->sendRequest('OPTIONS', 'foo/bar'); |
|
|
|
|
|
|
|
|
|
$this->assertEquals(401, $response->getStatus()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function testAnonymousOptionsRootOffice() { |
|
|
|
|
$response = $this->sendRequest('OPTIONS', '', 'Microsoft Office does strange things'); |
|
|
|
|
|
|
|
|
|
$this->assertEquals(200, $response->getStatus()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function testAnonymousOptionsNonRootOffice() { |
|
|
|
|
$response = $this->sendRequest('OPTIONS', 'foo', 'Microsoft Office does strange things'); |
|
|
|
|
|
|
|
|
|
$this->assertEquals(200, $response->getStatus()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function testAnonymousOptionsNonRootSubDirOffice() { |
|
|
|
|
$response = $this->sendRequest('OPTIONS', 'foo/bar', 'Microsoft Office does strange things'); |
|
|
|
|
|
|
|
|
|
$this->assertEquals(200, $response->getStatus()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|