Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2896606
PhabricatorCelerityTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
895 B
Referenced Files
None
Subscribers
None
PhabricatorCelerityTestCase.php
View Options
<?php
final
class
PhabricatorCelerityTestCase
extends
PhabricatorTestCase
{
/**
* This is more of an acceptance test case instead of a unit test. It verifies
* that the Celerity map is up-to-date.
*/
public
function
testCelerityMaps
(
)
{
$resources_map
=
CelerityPhysicalResources
::
getAll
(
)
;
foreach
(
$resources_map
as
$resources
)
{
$old_map
=
new
CelerityResourceMap
(
$resources
)
;
$new_map
=
id
(
new
CelerityResourceMapGenerator
(
$resources
)
)
->
generate
(
)
;
$this
->
assertEqual
(
$new_map
->
getNameMap
(
)
,
$old_map
->
getNameMap
(
)
)
;
$this
->
assertEqual
(
$new_map
->
getSymbolMap
(
)
,
$old_map
->
getSymbolMap
(
)
)
;
$this
->
assertEqual
(
$new_map
->
getRequiresMap
(
)
,
$old_map
->
getRequiresMap
(
)
)
;
$this
->
assertEqual
(
$new_map
->
getPackageMap
(
)
,
$old_map
->
getPackageMap
(
)
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 23:19 (6 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129826
Default Alt Text
PhabricatorCelerityTestCase.php (895 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment