Harde CapabiltiesTest
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
c02e6fcae2
commit
bbf66f8637
|
@ -71,9 +71,9 @@ class CapabilitiesTest extends \Test\TestCase {
|
|||
];
|
||||
$result = $this->getResults($map);
|
||||
$this->assertTrue($result['api_enabled']);
|
||||
$this->assertContains('public', $result);
|
||||
$this->assertContains('user', $result);
|
||||
$this->assertContains('resharing', $result);
|
||||
$this->assertArrayHasKey('public', $result);
|
||||
$this->assertArrayHasKey('user', $result);
|
||||
$this->assertArrayHasKey('resharing', $result);
|
||||
}
|
||||
|
||||
public function testDisabledSharingAPI() {
|
||||
|
@ -82,9 +82,9 @@ class CapabilitiesTest extends \Test\TestCase {
|
|||
];
|
||||
$result = $this->getResults($map);
|
||||
$this->assertFalse($result['api_enabled']);
|
||||
$this->assertNotContains('public', $result);
|
||||
$this->assertNotContains('user', $result);
|
||||
$this->assertNotContains('resharing', $result);
|
||||
$this->assertFalse($result['public']['enabled']);
|
||||
$this->assertFalse($result['user']['send_mail']);
|
||||
$this->assertFalse($result['resharing']);
|
||||
}
|
||||
|
||||
public function testNoLinkSharing() {
|
||||
|
|
Loading…
Reference in New Issue