Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97994162
PhabricatorCelerityTestCase.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
Wed, Jan 8, 09:45
Size
895 B
Mime Type
text/x-php
Expires
Fri, Jan 10, 09:45 (2 d)
Engine
blob
Format
Raw Data
Handle
23474900
Attached To
rPH Phabricator
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
());
}
}
}
Event Timeline
Log In to Comment