Differential D18693 Diff 44881 src/applications/owners/storage/__tests__/PhabricatorOwnersPackageTestCase.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/owners/storage/__tests__/PhabricatorOwnersPackageTestCase.php
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | $this->assertEqual( | ||||
array( | array( | ||||
2 => strlen('src/applications/'), | 2 => strlen('src/applications/'), | ||||
), | ), | ||||
PhabricatorOwnersPackage::findLongestPathsPerPackage($rows, $paths)); | PhabricatorOwnersPackage::findLongestPathsPerPackage($rows, $paths)); | ||||
// Now, add a more specific path to Package #1. This tests nested ownership | // Now, add a more specific path to Package #1. This tests nested ownership | ||||
// in packages with weak dominion rules. This time, Package #1 should end | // in packages with weak dominion rules. This time, Package #1 should end | ||||
// up back on top, with Package #2 cedeing control to its more specific | // up back on top, with Package #2 ceding control to its more specific | ||||
// path. | // path. | ||||
$rows[] = array( | $rows[] = array( | ||||
'id' => 1, | 'id' => 1, | ||||
'excluded' => 0, | 'excluded' => 0, | ||||
'dominion' => PhabricatorOwnersPackage::DOMINION_WEAK, | 'dominion' => PhabricatorOwnersPackage::DOMINION_WEAK, | ||||
'path' => 'src/applications/main/', | 'path' => 'src/applications/main/', | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |