From b09620651cbb72e5a623d47ed409e949b114c7cf Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 20 Aug 2020 14:08:18 +0200 Subject: Don't use deprecated getIniWrapper() anymore Signed-off-by: Joas Schilling --- tests/lib/LargeFileHelperGetFileSizeTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/lib/LargeFileHelperGetFileSizeTest.php b/tests/lib/LargeFileHelperGetFileSizeTest.php index 3ad8f5b8806..e21ac4ee64b 100644 --- a/tests/lib/LargeFileHelperGetFileSizeTest.php +++ b/tests/lib/LargeFileHelperGetFileSizeTest.php @@ -8,6 +8,8 @@ namespace Test; +use bantu\IniGetWrapper\IniGetWrapper; + /** * Tests whether LargeFileHelper is able to determine file size at all. * Large files are not considered yet. @@ -43,7 +45,7 @@ class LargeFileHelperGetFileSizeTest extends TestCase { 'The PHP curl extension is required for this test.' ); } - if (\OC::$server->getIniWrapper()->getString('open_basedir') !== '') { + if (\OC::$server->get(IniGetWrapper::class)->getString('open_basedir') !== '') { $this->markTestSkipped( 'The PHP curl extension does not work with the file:// protocol when open_basedir is enabled.' ); -- cgit v1.2.3