Skip to content

Commit e99702a

Browse files
committed
Update tests
1 parent 9387c0c commit e99702a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

tests/core/acp_bbcode_drag_drop_test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ public function test_bbcode_drag_drop($bbcodes)
4343
])
4444
;
4545

46-
// Expect JSON output but prevent exit()
46+
// Expect JSON output
4747
$this->expectOutputString('{"success":true}');
48+
$this->expectException(\RuntimeException::class);
4849

4950
// Get the acp_manager
5051
$acp_manager = $this->get_acp_manager();

tests/core/acp_bbcode_move_test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public function test_bbcode_move_triggers_error($item, $action, $hash, $ajax, $e
133133
{
134134
// Expect JSON output for ajax requests
135135
$this->expectOutputString('{"success":true}');
136+
$this->expectException(\RuntimeException::class);
136137
}
137138
else
138139
{

0 commit comments

Comments
 (0)