Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
754 B · 21 lines
PHP
12345678910111213141516171819202122<?php
final class DiffusionServeControllerTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); }
public function testHandleRequest() { $aphront_request = new AphrontRequest('example.com', '/'); $diffusion_serve_controller = new DiffusionServeController();
$diffusion_serve_controller->setRequest($aphront_request); $result = $diffusion_serve_controller->handleRequest($aphront_request); $this->assertTrue(true, 'handleRequest did not throw an error'); $this->assertTrue($result instanceof PhabricatorVCSResponse, 'handleRequest() returns PhabricatorVCSResponse object'); }
}