@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
at upstream/main 21 lines 754 B view raw
1<?php 2 3final class DiffusionServeControllerTestCase extends PhabricatorTestCase { 4 protected function getPhabricatorTestCaseConfiguration() { 5 return array( 6 self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, 7 ); 8 } 9 10 public function testHandleRequest() { 11 $aphront_request = new AphrontRequest('example.com', '/'); 12 $diffusion_serve_controller = new DiffusionServeController(); 13 14 $diffusion_serve_controller->setRequest($aphront_request); 15 $result = $diffusion_serve_controller->handleRequest($aphront_request); 16 $this->assertTrue(true, 'handleRequest did not throw an error'); 17 $this->assertTrue($result instanceof PhabricatorVCSResponse, 18 'handleRequest() returns PhabricatorVCSResponse object'); 19 } 20 21}