aboutsummaryrefslogtreecommitdiffstats
path: root/tests/installer
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-09-16 11:55:13 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-09-16 11:55:13 +0200
commita562fea2306c8ba5b47a161568bea5fbe2ffd19f (patch)
treefcab88a3a5dd5f05c77934eef0983793f2e2bd6a /tests/installer
parentd4a47409f7da09790f38d3418401cbe34f8c3703 (diff)
parent6651c1d8f4aead15f4750989670f75721390ee21 (diff)
downloadforums-a562fea2306c8ba5b47a161568bea5fbe2ffd19f.tar
forums-a562fea2306c8ba5b47a161568bea5fbe2ffd19f.tar.gz
forums-a562fea2306c8ba5b47a161568bea5fbe2ffd19f.tar.bz2
forums-a562fea2306c8ba5b47a161568bea5fbe2ffd19f.tar.xz
forums-a562fea2306c8ba5b47a161568bea5fbe2ffd19f.zip
Merge pull request #3727 from marc1706/ticket/13904
[ticket/13904] Refactor attachments functions into service * marc1706/ticket/13904: (66 commits) [ticket/13904] Use filespec's get_filesize instead of calling filesize() [ticket/13904] Set properties to protected where possible in filespec [ticket/13904] Fix tests after changes to factory [ticket/13904] Minor coding style fixes [ticket/13904] Add language entries for error messages in upload class [ticket/13904] Modify files for updated fast-image-size library [ticket/13904] Update composer.lock [ticket/13904] Improve code coverage [ticket/13904] Add unit tests for local upload type [ticket/13904] Minor coding style fixes [ticket/13904] Improve test coverage of base upload type class [ticket/13904] Improve test coverage of remote upload type [ticket/13904] Improve test coverage of form upload type [ticket/13904] Improve test coverage of filespec class [ticket/13904] Add back tests for retrieving floats [ticket/13904] Use ini_get() wrapper in file upload types [ticket/13904] Modify files for changes in ini wrapper [ticket/13904] Add bantu/ini-get-wrapper to composer.json [ticket/13904] Switch around constructor arguments [ticket/13904] Use \phpbb\php\ini class for ini_get() ...
Diffstat (limited to 'tests/installer')
-rw-r--r--tests/installer/installer_config_test.php6
-rw-r--r--tests/installer/module_base_test.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/installer/installer_config_test.php b/tests/installer/installer_config_test.php
index c7334ebd93..7de23aea36 100644
--- a/tests/installer/installer_config_test.php
+++ b/tests/installer/installer_config_test.php
@@ -24,11 +24,11 @@ class phpbb_installer_config_test extends phpbb_test_case
{
$phpbb_root_path = __DIR__ . './../../phpBB/';
$filesystem = $this->getMock('\phpbb\filesystem\filesystem');
- $php_ini = $this->getMockBuilder('\phpbb\php\ini')
+ $php_ini = $this->getMockBuilder('\bantu\IniGetWrapper\IniGetWrapper')
->getMock();
- $php_ini->method('get_int')
+ $php_ini->method('getInt')
->willReturn(-1);
- $php_ini->method('get_bytes')
+ $php_ini->method('getBytes')
->willReturn(-1);
$this->config = new config($filesystem, $php_ini, $phpbb_root_path);
diff --git a/tests/installer/module_base_test.php b/tests/installer/module_base_test.php
index fd92c9b674..9578010047 100644
--- a/tests/installer/module_base_test.php
+++ b/tests/installer/module_base_test.php
@@ -43,7 +43,7 @@ class module_base_test extends phpbb_test_case
$this->module = new test_installer_module($module_collection, true, false);
$iohandler = $this->getMock('\phpbb\install\helper\iohandler\iohandler_interface');
- $config = new \phpbb\install\helper\config(new \phpbb\filesystem\filesystem(), new \phpbb\php\ini(), '', 'php');
+ $config = new \phpbb\install\helper\config(new \phpbb\filesystem\filesystem(), new \bantu\IniGetWrapper\IniGetWrapper(), '', 'php');
$this->module->setup($config, $iohandler);
}