1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00

Add a trivial test case for HeraldField

Summary: Adds a trivial test case to ensure that `HeraldField` subclasses are properly implemented.

Test Plan: `arc unit`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13577
This commit is contained in:
Joshua Spence 2015-07-07 23:05:02 +10:00
parent 12a088d8b7
commit 0ffc7a8ab6
2 changed files with 12 additions and 0 deletions

View file

@ -947,6 +947,7 @@ phutil_register_library_map(array(
'HeraldEffect' => 'applications/herald/engine/HeraldEffect.php',
'HeraldEngine' => 'applications/herald/engine/HeraldEngine.php',
'HeraldField' => 'applications/herald/field/HeraldField.php',
'HeraldFieldTestCase' => 'applications/herald/field/__tests__/HeraldFieldTestCase.php',
'HeraldInvalidActionException' => 'applications/herald/engine/exception/HeraldInvalidActionException.php',
'HeraldInvalidConditionException' => 'applications/herald/engine/exception/HeraldInvalidConditionException.php',
'HeraldManageGlobalRulesCapability' => 'applications/herald/capability/HeraldManageGlobalRulesCapability.php',
@ -4468,6 +4469,7 @@ phutil_register_library_map(array(
'HeraldEffect' => 'Phobject',
'HeraldEngine' => 'Phobject',
'HeraldField' => 'Phobject',
'HeraldFieldTestCase' => 'PhutilTestCase',
'HeraldInvalidActionException' => 'Exception',
'HeraldInvalidConditionException' => 'Exception',
'HeraldManageGlobalRulesCapability' => 'PhabricatorPolicyCapability',

View file

@ -0,0 +1,10 @@
<?php
final class HeraldFieldTestCase extends PhutilTestCase {
public function testGetAllFields() {
HeraldField::getAllFields();
$this->assertTrue(true);
}
}