aboutsummaryrefslogtreecommitdiffstats
path: root/tests/console
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-08-24 12:33:32 +0200
committerTristan Darricau <github@nicofuma.fr>2016-12-03 16:37:35 +0100
commit8481bd4e1831e3f9911263957637f4095fb088b0 (patch)
tree38f1b70929abfa155cea422172e6301a1ed03d2a /tests/console
parent376042d845a18058d93d289a1227096794da06d2 (diff)
downloadforums-8481bd4e1831e3f9911263957637f4095fb088b0.tar
forums-8481bd4e1831e3f9911263957637f4095fb088b0.tar.gz
forums-8481bd4e1831e3f9911263957637f4095fb088b0.tar.bz2
forums-8481bd4e1831e3f9911263957637f4095fb088b0.tar.xz
forums-8481bd4e1831e3f9911263957637f4095fb088b0.zip
[ticket/12610] Use exception_interface
PHPBB3-12610
Diffstat (limited to 'tests/console')
-rw-r--r--tests/console/update/check_test.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/console/update/check_test.php b/tests/console/update/check_test.php
index 2101a3f33a..de57e4df08 100644
--- a/tests/console/update/check_test.php
+++ b/tests/console/update/check_test.php
@@ -62,6 +62,9 @@ class phpbb_console_command_check_test extends phpbb_test_case
$this->assertSame($status, 1);
}
+ /**
+ * @expectedException phpbb\exception\runtime_exception
+ */
public function test_error()
{
$command_tester = $this->get_command_tester('1');
@@ -87,7 +90,7 @@ class phpbb_console_command_check_test extends phpbb_test_case
->getMock();
$config = new \phpbb\config\config(array('version' => $current_version));
- $this->version_helper = new \phpbb\version_helper($cache, $config, new \phpbb\file_downloader(), $user);
+ $this->version_helper = new \phpbb\version_helper($cache, $config, new \phpbb\file_downloader());
$container = new phpbb_mock_container_builder;
$container->set('version_helper', $this->version_helper);