apps/encryption/tests/lib/crypto/encryptionTest.php 1 location
|
@@ 171-178 (lines=8) @@
|
| 168 |
|
); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
public function dataProviderForTestGetPathToRealFile() { |
| 172 |
|
return array( |
| 173 |
|
array('/user/files/foo/bar.txt', '/user/files/foo/bar.txt'), |
| 174 |
|
array('/user/files/foo.txt', '/user/files/foo.txt'), |
| 175 |
|
array('/user/files_versions/foo.txt.v543534', '/user/files/foo.txt'), |
| 176 |
|
array('/user/files_versions/foo/bar.txt.v5454', '/user/files/foo/bar.txt'), |
| 177 |
|
); |
| 178 |
|
} |
| 179 |
|
|
| 180 |
|
/** |
| 181 |
|
* @dataProvider dataTestBegin |
tests/lib/appframework/utility/SimpleContainerTest.php 1 location
|
@@ 173-180 (lines=8) @@
|
| 170 |
|
$this->container->query('test'), $this->container->query('test1')); |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
public function sanitizeNameProvider() { |
| 174 |
|
return [ |
| 175 |
|
['ABC\\Foo', 'ABC\\Foo'], |
| 176 |
|
['\\ABC\\Foo', '\\ABC\\Foo'], |
| 177 |
|
['\\ABC\\Foo', 'ABC\\Foo'], |
| 178 |
|
['ABC\\Foo', '\\ABC\\Foo'], |
| 179 |
|
]; |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
/** |
| 183 |
|
* @dataProvider sanitizeNameProvider |
tests/lib/encryption/utiltest.php 1 location
|
@@ 182-189 (lines=8) @@
|
| 179 |
|
$this->util->stripPartialFileExtension($path)); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
public function dataTestStripPartialFileExtension() { |
| 183 |
|
return array( |
| 184 |
|
array('/foo/test.txt', '/foo/test.txt'), |
| 185 |
|
array('/foo/test.txt.part', '/foo/test.txt'), |
| 186 |
|
array('/foo/test.txt.ocTransferId7567846853.part', '/foo/test.txt'), |
| 187 |
|
array('/foo/test.txt.ocTransferId7567.part', '/foo/test.txt'), |
| 188 |
|
); |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
/** |
| 192 |
|
* @dataProvider provideWrapStorage |
apps/user_ldap/tests/user/user.php 1 location
|
@@ 882-888 (lines=7) @@
|
| 879 |
|
$user->getHomePath(); |
| 880 |
|
} |
| 881 |
|
|
| 882 |
|
public function displayNameProvider() { |
| 883 |
|
return [ |
| 884 |
|
['Roland Deschain', '', 'Roland Deschain'], |
| 885 |
|
['Roland Deschain', null, 'Roland Deschain'], |
| 886 |
|
['Roland Deschain', '[email protected]', 'Roland Deschain ([email protected])'], |
| 887 |
|
]; |
| 888 |
|
} |
| 889 |
|
|
| 890 |
|
/** |
| 891 |
|
* @dataProvider displayNameProvider |