Elgg\ActionsServiceTest::testThrowsExceptionForInvalidAjax2ResponseFilter PHP Метод

testThrowsExceptionForInvalidAjax2ResponseFilter() публичный Метод

    public function testThrowsExceptionForInvalidAjax2ResponseFilter()
    {
        $this->hooks->registerHandler(Services\AjaxResponse::RESPONSE_HOOK, 'action:output3', [Values::class, 'getFalse']);
        $this->assertTrue($this->actions->register('output3', "{$this->actionsDir}/output3.php", 'public'));
        $this->request = $this->prepareHttpRequest('action/output3', 'POST', [], 2, true);
        $this->createService();
        try {
            $this->route();
            $this->fail('route did not throw RuntimeException');
        } catch (\RuntimeException $e) {
            ob_end_clean();
            return;
        }
    }
ActionsServiceTest