mirror of
https://github.com/nextcloud/server.git
synced 2024-08-24 17:55:37 +02:00
Fix tests
Signed-off-by: Aaron Dewes <aaron.dewes@protonmail.com>
This commit is contained in:
parent
16908999ed
commit
d79def553f
@ -137,13 +137,13 @@ class AccessTest extends TestCase {
|
|||||||
|
|
||||||
public function testEscapeFilterPartEscapeWildcard() {
|
public function testEscapeFilterPartEscapeWildcard() {
|
||||||
$input = '*';
|
$input = '*';
|
||||||
$expected = '\\\\*';
|
$expected = '\\2a';
|
||||||
$this->assertTrue($expected === $this->access->escapeFilterPart($input));
|
$this->assertTrue($expected === $this->access->escapeFilterPart($input));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testEscapeFilterPartEscapeWildcard2() {
|
public function testEscapeFilterPartEscapeWildcard2() {
|
||||||
$input = 'foo*bar';
|
$input = 'foo*bar';
|
||||||
$expected = 'foo\\\\*bar';
|
$expected = 'foo\\2abar';
|
||||||
$this->assertTrue($expected === $this->access->escapeFilterPart($input));
|
$this->assertTrue($expected === $this->access->escapeFilterPart($input));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user