Differential D10585 Diff 25583 src/applications/doorkeeper/bridge/__tests__/DoorkeeperBridgeJIRATestCase.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/doorkeeper/bridge/__tests__/DoorkeeperBridgeJIRATestCase.php
| <?php | <?php | ||||
| final class DoorkeeperBridgeJIRATestCase extends PhabricatorTestCase { | final class DoorkeeperBridgeJIRATestCase extends PhabricatorTestCase { | ||||
| public function testJIRABridgeRestAPIURIConversion() { | public function testJIRABridgeRestAPIURIConversion() { | ||||
| $map = array( | $map = array( | ||||
| array( | array( | ||||
| // Installed at domain root. | // Installed at domain root. | ||||
| 'http://jira.example.com/rest/api/2/issue/1', | 'http://jira.example.com/rest/api/2/issue/1', | ||||
| 'TP-1', | 'TP-1', | ||||
| 'http://jira.example.com/browse/TP-1' | 'http://jira.example.com/browse/TP-1', | ||||
| ), | ), | ||||
| array( | array( | ||||
| // Installed on path. | // Installed on path. | ||||
| 'http://jira.example.com/jira/rest/api/2/issue/1', | 'http://jira.example.com/jira/rest/api/2/issue/1', | ||||
| 'TP-1', | 'TP-1', | ||||
| 'http://jira.example.com/jira/browse/TP-1' | 'http://jira.example.com/jira/browse/TP-1', | ||||
| ), | ), | ||||
| array( | array( | ||||
| // A URI we don't understand. | // A URI we don't understand. | ||||
| 'http://jira.example.com/wake/cli/3/task/1', | 'http://jira.example.com/wake/cli/3/task/1', | ||||
| 'TP-1', | 'TP-1', | ||||
| null, | null, | ||||
| ), | ), | ||||
| ); | ); | ||||
| Show All 12 Lines | |||||