Differential D15752 Diff 37961 src/applications/repository/storage/__tests__/PhabricatorRepositoryTestCase.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/__tests__/PhabricatorRepositoryTestCase.php
| Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | $map = array( | ||||
| "ignoring untrusted configuration option x.y = z\n". | "ignoring untrusted configuration option x.y = z\n". | ||||
| "duckignoring untrusted configuration option x.y = z\n". | "duckignoring untrusted configuration option x.y = z\n". | ||||
| "quack" => | "quack" => | ||||
| 'duckquack', | 'duckquack', | ||||
| ); | ); | ||||
| foreach ($map as $input => $expect) { | foreach ($map as $input => $expect) { | ||||
| $actual = PhabricatorRepository::filterMercurialDebugOutput($input); | $actual = DiffusionMercurialCommandEngine::filterMercurialDebugOutput( | ||||
| $input); | |||||
| $this->assertEqual($expect, $actual, $input); | $this->assertEqual($expect, $actual, $input); | ||||
| } | } | ||||
| } | } | ||||
| public function testRepositoryShortNameValidation() { | public function testRepositoryShortNameValidation() { | ||||
| $good = array( | $good = array( | ||||
| 'sensible-repository', | 'sensible-repository', | ||||
| 'AReasonableName', | 'AReasonableName', | ||||
| ▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines | |||||