Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72162676
DiffusionLowLevelMercurialPathsQueryTests.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jul 15, 01:49
Size
788 B
Mime Type
text/x-php
Expires
Wed, Jul 17, 01:49 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
19041536
Attached To
rPH Phabricator
DiffusionLowLevelMercurialPathsQueryTests.php
View Options
<?php
final
class
DiffusionLowLevelMercurialPathsQueryTests
extends
PhabricatorTestCase
{
public
function
testCommandByVersion
()
{
$cases
=
array
(
array
(
'name'
=>
pht
(
'Versions which should not use `files`'
),
'versions'
=>
array
(
'2.6.2'
,
'2.9'
,
'3.1'
),
'match'
=>
false
,
),
array
(
'name'
=>
pht
(
'Versions which should use `files`'
),
'versions'
=>
array
(
'3.2'
,
'3.3'
,
'3.5.2'
),
'match'
=>
true
,
),
);
foreach
(
$cases
as
$case
)
{
foreach
(
$case
[
'versions'
]
as
$version
)
{
$actual
=
PhabricatorRepositoryVersion
::
isMercurialFilesCommandAvailable
(
$version
);
$expect
=
$case
[
'match'
];
$this
->
assertEqual
(
$expect
,
$actual
,
$case
[
'name'
]);
}
}
}
}
Event Timeline
Log In to Comment