Skip to content

Commit 641de88

Browse files
committed
Revert AJAX hacks
1 parent 2cb309d commit 641de88

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

tests/controller/acp_controller_test.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -574,15 +574,7 @@ public function test_action_move($id, $dir, $valid, $error, $is_ajax)
574574

575575
if ($is_ajax)
576576
{
577-
// Handle trigger_error() output called from json_response
578-
if (version_compare(\PHPUnit\Runner\Version::id(), '10.0.0', '>='))
579-
{
580-
$this->markTestSkipped('setExpectedTriggerError not available in PHPUnit 10+');
581-
}
582-
else
583-
{
584-
$this->setExpectedTriggerError(E_WARNING);
585-
}
577+
$this->expectOutputString('{"success":true}');
586578
}
587579

588580
$variable_invocation = 0;

tests/event/listener_test.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ protected static function setup_extensions()
5959
/** @var string */
6060
protected $php_ext;
6161

62-
/**
63-
* Get data set fixtures
64-
*
65-
* @return \PHPUnit\DbUnit\DataSet\XmlDataSet
66-
*/
6762
public function getDataSet()
6863
{
6964
return $this->createXMLDataSet(__DIR__ . '/../fixtures/board_announcements.xml');

0 commit comments

Comments
 (0)