diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-11-23 12:35:47 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-11-23 12:35:47 +0100 |
commit | be4e92130683e90f98ddcb268067951d1fc32153 (patch) | |
tree | cbfd5a2fb036138c57130c8e1ae4a0c6d92f5088 /tests/lib/UtilTest.php | |
parent | 98cdd9885fdb3dfa01ad2d75d942215e4652bb2d (diff) | |
download | nextcloud-server-be4e92130683e90f98ddcb268067951d1fc32153.tar.gz nextcloud-server-be4e92130683e90f98ddcb268067951d1fc32153.zip |
Use basename() instead of self implementation
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib/UtilTest.php')
-rw-r--r-- | tests/lib/UtilTest.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php index 49dc4ddebb1..16d03b049fe 100644 --- a/tests/lib/UtilTest.php +++ b/tests/lib/UtilTest.php @@ -178,24 +178,6 @@ class UtilTest extends \Test\TestCase { } /** - * @dataProvider baseNameProvider - */ - public function testBaseName($expected, $file) { - $base = \OC_Util::basename($file); - $this->assertEquals($expected, $base); - } - - public function baseNameProvider() { - return array( - array('public_html', '/home/user/public_html/'), - array('public_html', '/home/user/public_html'), - array('', '/'), - array('public_html', 'public_html'), - array('442aa682de2a64db1e010f50e60fd9c9', 'local::C:\Users\ADMINI~1\AppData\Local\Temp\2/442aa682de2a64db1e010f50e60fd9c9/') - ); - } - - /** * @dataProvider filenameValidationProvider */ public function testFilenameValidation($file, $valid) { |