mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-19 07:16:36 +02:00
[ticket/15369] Fix tests
PHPBB3-15369
This commit is contained in:
parent
18d4b7f358
commit
2753f8ccc8
@ -36,7 +36,7 @@ class phpbb_feed_attachments_base_test extends phpbb_database_test_case
|
||||
new phpbb_mock_request()
|
||||
),
|
||||
$this->filesystem,
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
$this->createMock('\phpbb\request\request'),
|
||||
$phpbb_root_path,
|
||||
'php'
|
||||
);
|
||||
|
@ -95,7 +95,12 @@ class phpbb_test_case_helpers
|
||||
break;
|
||||
}
|
||||
$this->expectedTriggerError = true;
|
||||
$this->test_case->setExpectedException($exceptionName, (string) $message, $errno);
|
||||
$this->test_case->expectException($exceptionName);
|
||||
$this->test_case->expectExceptionCode($errno);
|
||||
if ($message)
|
||||
{
|
||||
$this->test_case->expectExceptionMessage((string) $message);
|
||||
}
|
||||
}
|
||||
|
||||
public function makedirs($path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user