Page MenuHomePhabricator

D13272.id32071.diff
No OneTemporary

D13272.id32071.diff

diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -92,6 +92,7 @@
'AlmanacServiceTransaction' => 'applications/almanac/storage/AlmanacServiceTransaction.php',
'AlmanacServiceTransactionQuery' => 'applications/almanac/query/AlmanacServiceTransactionQuery.php',
'AlmanacServiceType' => 'applications/almanac/servicetype/AlmanacServiceType.php',
+ 'AlmanacServiceTypeTestCase' => 'applications/almanac/servicetype/__tests__/AlmanacServiceTypeTestCase.php',
'AlmanacServiceViewController' => 'applications/almanac/controller/AlmanacServiceViewController.php',
'AphlictDropdownDataQuery' => 'applications/aphlict/query/AphlictDropdownDataQuery.php',
'Aphront304Response' => 'aphront/response/Aphront304Response.php',
@@ -184,6 +185,7 @@
'CelerityPhabricatorResourceController' => 'applications/celerity/controller/CelerityPhabricatorResourceController.php',
'CelerityPhabricatorResources' => 'applications/celerity/resources/CelerityPhabricatorResources.php',
'CelerityPhysicalResources' => 'applications/celerity/resources/CelerityPhysicalResources.php',
+ 'CelerityPhysicalResourcesTestCase' => 'applications/celerity/resources/__tests__/CelerityPhysicalResourcesTestCase.php',
'CelerityResourceController' => 'applications/celerity/controller/CelerityResourceController.php',
'CelerityResourceGraph' => 'applications/celerity/CelerityResourceGraph.php',
'CelerityResourceMap' => 'applications/celerity/CelerityResourceMap.php',
@@ -198,6 +200,7 @@
'ChatLogQueryConduitAPIMethod' => 'applications/chatlog/conduit/ChatLogQueryConduitAPIMethod.php',
'ChatLogRecordConduitAPIMethod' => 'applications/chatlog/conduit/ChatLogRecordConduitAPIMethod.php',
'ConduitAPIMethod' => 'applications/conduit/method/ConduitAPIMethod.php',
+ 'ConduitAPIMethodTestCase' => 'applications/conduit/method/__tests__/ConduitAPIMethodTestCase.php',
'ConduitAPIRequest' => 'applications/conduit/protocol/ConduitAPIRequest.php',
'ConduitAPIResponse' => 'applications/conduit/protocol/ConduitAPIResponse.php',
'ConduitApplicationNotInstalledException' => 'applications/conduit/protocol/exception/ConduitApplicationNotInstalledException.php',
@@ -701,6 +704,7 @@
'DrydockBlueprintEditController' => 'applications/drydock/controller/DrydockBlueprintEditController.php',
'DrydockBlueprintEditor' => 'applications/drydock/editor/DrydockBlueprintEditor.php',
'DrydockBlueprintImplementation' => 'applications/drydock/blueprint/DrydockBlueprintImplementation.php',
+ 'DrydockBlueprintImplementationTestCase' => 'applications/drydock/blueprint/__tests__/DrydockBlueprintImplementationTestCase.php',
'DrydockBlueprintListController' => 'applications/drydock/controller/DrydockBlueprintListController.php',
'DrydockBlueprintPHIDType' => 'applications/drydock/phid/DrydockBlueprintPHIDType.php',
'DrydockBlueprintQuery' => 'applications/drydock/query/DrydockBlueprintQuery.php',
@@ -843,6 +847,7 @@
'HarbormasterBuildStepCustomField' => 'applications/harbormaster/customfield/HarbormasterBuildStepCustomField.php',
'HarbormasterBuildStepEditor' => 'applications/harbormaster/editor/HarbormasterBuildStepEditor.php',
'HarbormasterBuildStepImplementation' => 'applications/harbormaster/step/HarbormasterBuildStepImplementation.php',
+ 'HarbormasterBuildStepImplementationTestCase' => 'applications/harbormaster/step/__tests__/HarbormasterBuildStepImplementationTestCase.php',
'HarbormasterBuildStepPHIDType' => 'applications/harbormaster/phid/HarbormasterBuildStepPHIDType.php',
'HarbormasterBuildStepQuery' => 'applications/harbormaster/query/HarbormasterBuildStepQuery.php',
'HarbormasterBuildStepTransaction' => 'applications/harbormaster/storage/configuration/HarbormasterBuildStepTransaction.php',
@@ -1033,6 +1038,7 @@
'ManiphestEmailCommand' => 'applications/maniphest/command/ManiphestEmailCommand.php',
'ManiphestExcelDefaultFormat' => 'applications/maniphest/export/ManiphestExcelDefaultFormat.php',
'ManiphestExcelFormat' => 'applications/maniphest/export/ManiphestExcelFormat.php',
+ 'ManiphestExcelFormatTestCase' => 'applications/maniphest/export/__tests__/ManiphestExcelFormatTestCase.php',
'ManiphestExportController' => 'applications/maniphest/controller/ManiphestExportController.php',
'ManiphestGetTaskTransactionsConduitAPIMethod' => 'applications/maniphest/conduit/ManiphestGetTaskTransactionsConduitAPIMethod.php',
'ManiphestHovercardEventListener' => 'applications/maniphest/event/ManiphestHovercardEventListener.php',
@@ -1084,6 +1090,7 @@
'ManiphestView' => 'applications/maniphest/view/ManiphestView.php',
'MetaMTAConstants' => 'applications/metamta/constants/MetaMTAConstants.php',
'MetaMTAEmailTransactionCommand' => 'applications/metamta/command/MetaMTAEmailTransactionCommand.php',
+ 'MetaMTAEmailTransactionCommandTestCase' => 'applications/metamta/command/__tests__/MetaMTAEmailTransactionCommandTestCase.php',
'MetaMTAMailReceivedGarbageCollector' => 'applications/metamta/garbagecollector/MetaMTAMailReceivedGarbageCollector.php',
'MetaMTAMailSentGarbageCollector' => 'applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php',
'MetaMTAReceivedMailStatus' => 'applications/metamta/constants/MetaMTAReceivedMailStatus.php',
@@ -1142,6 +1149,7 @@
'NuanceSourceDefaultEditCapability' => 'applications/nuance/capability/NuanceSourceDefaultEditCapability.php',
'NuanceSourceDefaultViewCapability' => 'applications/nuance/capability/NuanceSourceDefaultViewCapability.php',
'NuanceSourceDefinition' => 'applications/nuance/source/NuanceSourceDefinition.php',
+ 'NuanceSourceDefinitionTestCase' => 'applications/nuance/source/__tests__/NuanceSourceDefinitionTestCase.php',
'NuanceSourceEditController' => 'applications/nuance/controller/NuanceSourceEditController.php',
'NuanceSourceEditor' => 'applications/nuance/editor/NuanceSourceEditor.php',
'NuanceSourceListController' => 'applications/nuance/controller/NuanceSourceListController.php',
@@ -1263,6 +1271,7 @@
'PassphraseCredentialTypeSSHPrivateKey' => 'applications/passphrase/credentialtype/PassphraseCredentialTypeSSHPrivateKey.php',
'PassphraseCredentialTypeSSHPrivateKeyFile' => 'applications/passphrase/credentialtype/PassphraseCredentialTypeSSHPrivateKeyFile.php',
'PassphraseCredentialTypeSSHPrivateKeyText' => 'applications/passphrase/credentialtype/PassphraseCredentialTypeSSHPrivateKeyText.php',
+ 'PassphraseCredentialTypeTestCase' => 'applications/passphrase/credentialtype/__tests__/PassphraseCredentialTypeTestCase.php',
'PassphraseCredentialViewController' => 'applications/passphrase/controller/PassphraseCredentialViewController.php',
'PassphraseDAO' => 'applications/passphrase/storage/PassphraseDAO.php',
'PassphrasePasswordKey' => 'applications/passphrase/keys/PassphrasePasswordKey.php',
@@ -1312,6 +1321,7 @@
'PhabricatorApplicationApplicationPHIDType' => 'applications/meta/phid/PhabricatorApplicationApplicationPHIDType.php',
'PhabricatorApplicationConfigOptions' => 'applications/config/option/PhabricatorApplicationConfigOptions.php',
'PhabricatorApplicationConfigurationPanel' => 'applications/meta/panel/PhabricatorApplicationConfigurationPanel.php',
+ 'PhabricatorApplicationConfigurationPanelTestCase' => 'applications/meta/panel/__tests__/PhabricatorApplicationConfigurationPanelTestCase.php',
'PhabricatorApplicationDatasource' => 'applications/meta/typeahead/PhabricatorApplicationDatasource.php',
'PhabricatorApplicationDetailViewController' => 'applications/meta/controller/PhabricatorApplicationDetailViewController.php',
'PhabricatorApplicationEditController' => 'applications/meta/controller/PhabricatorApplicationEditController.php',
@@ -1321,8 +1331,10 @@
'PhabricatorApplicationQuery' => 'applications/meta/query/PhabricatorApplicationQuery.php',
'PhabricatorApplicationSearchController' => 'applications/search/controller/PhabricatorApplicationSearchController.php',
'PhabricatorApplicationSearchEngine' => 'applications/search/engine/PhabricatorApplicationSearchEngine.php',
+ 'PhabricatorApplicationSearchEngineTestCase' => 'applications/search/engine/__tests__/PhabricatorApplicationSearchEngineTestCase.php',
'PhabricatorApplicationSearchResultsControllerInterface' => 'applications/search/interface/PhabricatorApplicationSearchResultsControllerInterface.php',
'PhabricatorApplicationStatusView' => 'applications/meta/view/PhabricatorApplicationStatusView.php',
+ 'PhabricatorApplicationTestCase' => 'applications/base/__tests__/PhabricatorApplicationTestCase.php',
'PhabricatorApplicationTransaction' => 'applications/transactions/storage/PhabricatorApplicationTransaction.php',
'PhabricatorApplicationTransactionComment' => 'applications/transactions/storage/PhabricatorApplicationTransactionComment.php',
'PhabricatorApplicationTransactionCommentEditController' => 'applications/transactions/controller/PhabricatorApplicationTransactionCommentEditController.php',
@@ -1395,6 +1407,7 @@
'PhabricatorAuthEditController' => 'applications/auth/controller/config/PhabricatorAuthEditController.php',
'PhabricatorAuthFactor' => 'applications/auth/factor/PhabricatorAuthFactor.php',
'PhabricatorAuthFactorConfig' => 'applications/auth/storage/PhabricatorAuthFactorConfig.php',
+ 'PhabricatorAuthFactorTestCase' => 'applications/auth/factor/__tests__/PhabricatorAuthFactorTestCase.php',
'PhabricatorAuthFinishController' => 'applications/auth/controller/PhabricatorAuthFinishController.php',
'PhabricatorAuthHighSecurityRequiredException' => 'applications/auth/exception/PhabricatorAuthHighSecurityRequiredException.php',
'PhabricatorAuthHighSecurityToken' => 'applications/auth/data/PhabricatorAuthHighSecurityToken.php',
@@ -1784,6 +1797,7 @@
'PhabricatorEdgeQuery' => 'infrastructure/edges/query/PhabricatorEdgeQuery.php',
'PhabricatorEdgeTestCase' => 'infrastructure/edges/__tests__/PhabricatorEdgeTestCase.php',
'PhabricatorEdgeType' => 'infrastructure/edges/type/PhabricatorEdgeType.php',
+ 'PhabricatorEdgeTypeTestCase' => 'infrastructure/edges/type/__tests__/PhabricatorEdgeTypeTestCase.php',
'PhabricatorEditor' => 'infrastructure/PhabricatorEditor.php',
'PhabricatorElasticSearchEngine' => 'applications/search/engine/PhabricatorElasticSearchEngine.php',
'PhabricatorElasticSearchSetupCheck' => 'applications/config/check/PhabricatorElasticSearchSetupCheck.php',
@@ -1819,6 +1833,7 @@
'PhabricatorFactDAO' => 'applications/fact/storage/PhabricatorFactDAO.php',
'PhabricatorFactDaemon' => 'applications/fact/daemon/PhabricatorFactDaemon.php',
'PhabricatorFactEngine' => 'applications/fact/engine/PhabricatorFactEngine.php',
+ 'PhabricatorFactEngineTestCase' => 'applications/fact/engine/__tests__/PhabricatorFactEngineTestCase.php',
'PhabricatorFactHomeController' => 'applications/fact/controller/PhabricatorFactHomeController.php',
'PhabricatorFactLastUpdatedEngine' => 'applications/fact/engine/PhabricatorFactLastUpdatedEngine.php',
'PhabricatorFactManagementAnalyzeWorkflow' => 'applications/fact/management/PhabricatorFactManagementAnalyzeWorkflow.php',
@@ -1876,6 +1891,7 @@
'PhabricatorFileStorageBlob' => 'applications/files/storage/PhabricatorFileStorageBlob.php',
'PhabricatorFileStorageConfigurationException' => 'applications/files/exception/PhabricatorFileStorageConfigurationException.php',
'PhabricatorFileStorageEngine' => 'applications/files/engine/PhabricatorFileStorageEngine.php',
+ 'PhabricatorFileStorageEngineTestCase' => 'applications/files/engine/__tests__/PhabricatorFileStorageEngineTestCase.php',
'PhabricatorFileTemporaryGarbageCollector' => 'applications/files/garbagecollector/PhabricatorFileTemporaryGarbageCollector.php',
'PhabricatorFileTestCase' => 'applications/files/storage/__tests__/PhabricatorFileTestCase.php',
'PhabricatorFileTestDataGenerator' => 'applications/files/lipsum/PhabricatorFileTestDataGenerator.php',
@@ -1886,6 +1902,7 @@
'PhabricatorFileTransform' => 'applications/files/transform/PhabricatorFileTransform.php',
'PhabricatorFileTransformController' => 'applications/files/controller/PhabricatorFileTransformController.php',
'PhabricatorFileTransformListController' => 'applications/files/controller/PhabricatorFileTransformListController.php',
+ 'PhabricatorFileTransformTestCase' => 'applications/files/transform/__tests__/PhabricatorFileTransformTestCase.php',
'PhabricatorFileUploadController' => 'applications/files/controller/PhabricatorFileUploadController.php',
'PhabricatorFileUploadDialogController' => 'applications/files/controller/PhabricatorFileUploadDialogController.php',
'PhabricatorFileUploadException' => 'applications/files/exception/PhabricatorFileUploadException.php',
@@ -1963,6 +1980,7 @@
'PhabricatorInternationalizationManagementWorkflow' => 'infrastructure/internationalization/management/PhabricatorInternationalizationManagementWorkflow.php',
'PhabricatorInvalidConfigSetupCheck' => 'applications/config/check/PhabricatorInvalidConfigSetupCheck.php',
'PhabricatorIteratedMD5PasswordHasher' => 'infrastructure/util/password/PhabricatorIteratedMD5PasswordHasher.php',
+ 'PhabricatorIteratedMD5PasswordHasherTestCase' => 'infrastructure/util/password/__tests__/PhabricatorIteratedMD5PasswordHasherTestCase.php',
'PhabricatorJIRAAuthProvider' => 'applications/auth/provider/PhabricatorJIRAAuthProvider.php',
'PhabricatorJavelinLinter' => 'infrastructure/lint/linter/PhabricatorJavelinLinter.php',
'PhabricatorJiraIssueHasObjectEdgeType' => 'applications/doorkeeper/edge/PhabricatorJiraIssueHasObjectEdgeType.php',
@@ -2188,6 +2206,7 @@
'PhabricatorPHIDConstants' => 'applications/phid/PhabricatorPHIDConstants.php',
'PhabricatorPHIDInterface' => 'applications/phid/interface/PhabricatorPHIDInterface.php',
'PhabricatorPHIDType' => 'applications/phid/type/PhabricatorPHIDType.php',
+ 'PhabricatorPHIDTypeTestCase' => 'applications/phid/type/__tests__/PhabricatorPHIDTypeTestCase.php',
'PhabricatorPHPASTApplication' => 'applications/phpast/application/PhabricatorPHPASTApplication.php',
'PhabricatorPHPConfigSetupCheck' => 'applications/config/check/PhabricatorPHPConfigSetupCheck.php',
'PhabricatorPHPMailerConfigOptions' => 'applications/config/option/PhabricatorPHPMailerConfigOptions.php',
@@ -2281,6 +2300,7 @@
'PhabricatorPolicyCanJoinCapability' => 'applications/policy/capability/PhabricatorPolicyCanJoinCapability.php',
'PhabricatorPolicyCanViewCapability' => 'applications/policy/capability/PhabricatorPolicyCanViewCapability.php',
'PhabricatorPolicyCapability' => 'applications/policy/capability/PhabricatorPolicyCapability.php',
+ 'PhabricatorPolicyCapabilityTestCase' => 'applications/policy/capability/__tests__/PhabricatorPolicyCapabilityTestCase.php',
'PhabricatorPolicyConfigOptions' => 'applications/policy/config/PhabricatorPolicyConfigOptions.php',
'PhabricatorPolicyConstants' => 'applications/policy/constants/PhabricatorPolicyConstants.php',
'PhabricatorPolicyController' => 'applications/policy/controller/PhabricatorPolicyController.php',
@@ -2518,6 +2538,7 @@
'PhabricatorSearchDocumentTypeDatasource' => 'applications/search/typeahead/PhabricatorSearchDocumentTypeDatasource.php',
'PhabricatorSearchEditController' => 'applications/search/controller/PhabricatorSearchEditController.php',
'PhabricatorSearchEngine' => 'applications/search/engine/PhabricatorSearchEngine.php',
+ 'PhabricatorSearchEngineTestCase' => 'applications/search/engine/__tests__/PhabricatorSearchEngineTestCase.php',
'PhabricatorSearchField' => 'applications/search/field/PhabricatorSearchField.php',
'PhabricatorSearchHovercardController' => 'applications/search/controller/PhabricatorSearchHovercardController.php',
'PhabricatorSearchIndexer' => 'applications/search/index/PhabricatorSearchIndexer.php',
@@ -2551,6 +2572,7 @@
'PhabricatorSettingsMainController' => 'applications/settings/controller/PhabricatorSettingsMainController.php',
'PhabricatorSettingsPanel' => 'applications/settings/panel/PhabricatorSettingsPanel.php',
'PhabricatorSetupCheck' => 'applications/config/check/PhabricatorSetupCheck.php',
+ 'PhabricatorSetupCheckTestCase' => 'applications/config/check/__tests__/PhabricatorSetupCheckTestCase.php',
'PhabricatorSetupIssue' => 'applications/config/issue/PhabricatorSetupIssue.php',
'PhabricatorSetupIssueUIExample' => 'applications/uiexample/examples/PhabricatorSetupIssueUIExample.php',
'PhabricatorSetupIssueView' => 'applications/config/view/PhabricatorSetupIssueView.php',
@@ -2967,6 +2989,7 @@
'PhortunePaymentProviderConfigTransaction' => 'applications/phortune/storage/PhortunePaymentProviderConfigTransaction.php',
'PhortunePaymentProviderConfigTransactionQuery' => 'applications/phortune/query/PhortunePaymentProviderConfigTransactionQuery.php',
'PhortunePaymentProviderPHIDType' => 'applications/phortune/phid/PhortunePaymentProviderPHIDType.php',
+ 'PhortunePaymentProviderTestCase' => 'applications/phortune/provider/__tests__/PhortunePaymentProviderTestCase.php',
'PhortuneProduct' => 'applications/phortune/storage/PhortuneProduct.php',
'PhortuneProductImplementation' => 'applications/phortune/product/PhortuneProductImplementation.php',
'PhortuneProductListController' => 'applications/phortune/controller/PhortuneProductListController.php',
@@ -3383,6 +3406,7 @@
'AlmanacServiceTransaction' => 'PhabricatorApplicationTransaction',
'AlmanacServiceTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
'AlmanacServiceType' => 'Phobject',
+ 'AlmanacServiceTypeTestCase' => 'PhabricatorTestCase',
'AlmanacServiceViewController' => 'AlmanacServiceController',
'Aphront304Response' => 'AphrontResponse',
'Aphront400Response' => 'AphrontResponse',
@@ -3470,6 +3494,7 @@
'CelerityPhabricatorResourceController' => 'CelerityResourceController',
'CelerityPhabricatorResources' => 'CelerityResourcesOnDisk',
'CelerityPhysicalResources' => 'CelerityResources',
+ 'CelerityPhysicalResourcesTestCase' => 'PhabricatorTestCase',
'CelerityResourceController' => 'PhabricatorController',
'CelerityResourceGraph' => 'AbstractDirectedGraph',
'CelerityResourceTransformerTestCase' => 'PhabricatorTestCase',
@@ -3481,6 +3506,7 @@
'Phobject',
'PhabricatorPolicyInterface',
),
+ 'ConduitAPIMethodTestCase' => 'PhabricatorTestCase',
'ConduitApplicationNotInstalledException' => 'ConduitMethodNotFoundException',
'ConduitCallTestCase' => 'PhabricatorTestCase',
'ConduitConnectConduitAPIMethod' => 'ConduitAPIMethod',
@@ -3985,6 +4011,7 @@
'DrydockBlueprintCustomField' => 'PhabricatorCustomField',
'DrydockBlueprintEditController' => 'DrydockBlueprintController',
'DrydockBlueprintEditor' => 'PhabricatorApplicationTransactionEditor',
+ 'DrydockBlueprintImplementationTestCase' => 'PhabricatorTestCase',
'DrydockBlueprintListController' => 'DrydockBlueprintController',
'DrydockBlueprintPHIDType' => 'PhabricatorPHIDType',
'DrydockBlueprintQuery' => 'DrydockQuery',
@@ -4172,6 +4199,7 @@
),
'HarbormasterBuildStepCustomField' => 'PhabricatorCustomField',
'HarbormasterBuildStepEditor' => 'PhabricatorApplicationTransactionEditor',
+ 'HarbormasterBuildStepImplementationTestCase' => 'PhabricatorTestCase',
'HarbormasterBuildStepPHIDType' => 'PhabricatorPHIDType',
'HarbormasterBuildStepQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'HarbormasterBuildStepTransaction' => 'PhabricatorApplicationTransaction',
@@ -4380,6 +4408,7 @@
'ManiphestEditStatusCapability' => 'PhabricatorPolicyCapability',
'ManiphestEmailCommand' => 'MetaMTAEmailTransactionCommand',
'ManiphestExcelDefaultFormat' => 'ManiphestExcelFormat',
+ 'ManiphestExcelFormatTestCase' => 'PhabricatorTestCase',
'ManiphestExportController' => 'ManiphestController',
'ManiphestGetTaskTransactionsConduitAPIMethod' => 'ManiphestConduitAPIMethod',
'ManiphestHovercardEventListener' => 'PhabricatorEventListener',
@@ -4444,6 +4473,7 @@
'ManiphestUpdateConduitAPIMethod' => 'ManiphestConduitAPIMethod',
'ManiphestView' => 'AphrontView',
'MetaMTAEmailTransactionCommand' => 'Phobject',
+ 'MetaMTAEmailTransactionCommandTestCase' => 'PhabricatorTestCase',
'MetaMTAMailReceivedGarbageCollector' => 'PhabricatorGarbageCollector',
'MetaMTAMailSentGarbageCollector' => 'PhabricatorGarbageCollector',
'MetaMTAReceivedMailStatus' => 'MetaMTAConstants',
@@ -4516,6 +4546,7 @@
'NuanceSourceDefaultEditCapability' => 'PhabricatorPolicyCapability',
'NuanceSourceDefaultViewCapability' => 'PhabricatorPolicyCapability',
'NuanceSourceDefinition' => 'Phobject',
+ 'NuanceSourceDefinitionTestCase' => 'PhabricatorTestCase',
'NuanceSourceEditController' => 'NuanceController',
'NuanceSourceEditor' => 'PhabricatorApplicationTransactionEditor',
'NuanceSourceListController' => 'NuanceController',
@@ -4641,6 +4672,7 @@
'PassphraseCredentialTypeSSHPrivateKey' => 'PassphraseCredentialType',
'PassphraseCredentialTypeSSHPrivateKeyFile' => 'PassphraseCredentialTypeSSHPrivateKey',
'PassphraseCredentialTypeSSHPrivateKeyText' => 'PassphraseCredentialTypeSSHPrivateKey',
+ 'PassphraseCredentialTypeTestCase' => 'PhabricatorTestCase',
'PassphraseCredentialViewController' => 'PassphraseController',
'PassphraseDAO' => 'PhabricatorLiskDAO',
'PassphrasePasswordKey' => 'PassphraseAbstractKey',
@@ -4689,6 +4721,7 @@
'PhabricatorApplicationApplicationPHIDType' => 'PhabricatorPHIDType',
'PhabricatorApplicationConfigOptions' => 'Phobject',
'PhabricatorApplicationConfigurationPanel' => 'Phobject',
+ 'PhabricatorApplicationConfigurationPanelTestCase' => 'PhabricatorTestCase',
'PhabricatorApplicationDatasource' => 'PhabricatorTypeaheadDatasource',
'PhabricatorApplicationDetailViewController' => 'PhabricatorApplicationsController',
'PhabricatorApplicationEditController' => 'PhabricatorApplicationsController',
@@ -4698,7 +4731,9 @@
'PhabricatorApplicationQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'PhabricatorApplicationSearchController' => 'PhabricatorSearchBaseController',
'PhabricatorApplicationSearchEngine' => 'Phobject',
+ 'PhabricatorApplicationSearchEngineTestCase' => 'PhabricatorTestCase',
'PhabricatorApplicationStatusView' => 'AphrontView',
+ 'PhabricatorApplicationTestCase' => 'PhabricatorTestCase',
'PhabricatorApplicationTransaction' => array(
'PhabricatorLiskDAO',
'PhabricatorPolicyInterface',
@@ -4776,6 +4811,7 @@
'PhabricatorAuthEditController' => 'PhabricatorAuthProviderConfigController',
'PhabricatorAuthFactor' => 'Phobject',
'PhabricatorAuthFactorConfig' => 'PhabricatorAuthDAO',
+ 'PhabricatorAuthFactorTestCase' => 'PhabricatorTestCase',
'PhabricatorAuthFinishController' => 'PhabricatorAuthController',
'PhabricatorAuthHighSecurityRequiredException' => 'Exception',
'PhabricatorAuthInvite' => array(
@@ -5215,6 +5251,7 @@
'PhabricatorEdgeQuery' => 'PhabricatorQuery',
'PhabricatorEdgeTestCase' => 'PhabricatorTestCase',
'PhabricatorEdgeType' => 'Phobject',
+ 'PhabricatorEdgeTypeTestCase' => 'PhabricatorTestCase',
'PhabricatorEditor' => 'Phobject',
'PhabricatorElasticSearchEngine' => 'PhabricatorSearchEngine',
'PhabricatorElasticSearchSetupCheck' => 'PhabricatorSetupCheck',
@@ -5249,6 +5286,7 @@
'PhabricatorFactCursor' => 'PhabricatorFactDAO',
'PhabricatorFactDAO' => 'PhabricatorLiskDAO',
'PhabricatorFactDaemon' => 'PhabricatorDaemon',
+ 'PhabricatorFactEngineTestCase' => 'PhabricatorTestCase',
'PhabricatorFactHomeController' => 'PhabricatorFactController',
'PhabricatorFactLastUpdatedEngine' => 'PhabricatorFactEngine',
'PhabricatorFactManagementAnalyzeWorkflow' => 'PhabricatorFactManagementWorkflow',
@@ -5325,6 +5363,7 @@
'PhabricatorFileSearchEngine' => 'PhabricatorApplicationSearchEngine',
'PhabricatorFileStorageBlob' => 'PhabricatorFileDAO',
'PhabricatorFileStorageConfigurationException' => 'Exception',
+ 'PhabricatorFileStorageEngineTestCase' => 'PhabricatorTestCase',
'PhabricatorFileTemporaryGarbageCollector' => 'PhabricatorGarbageCollector',
'PhabricatorFileTestCase' => 'PhabricatorTestCase',
'PhabricatorFileTestDataGenerator' => 'PhabricatorTestDataGenerator',
@@ -5335,6 +5374,7 @@
'PhabricatorFileTransform' => 'Phobject',
'PhabricatorFileTransformController' => 'PhabricatorFileController',
'PhabricatorFileTransformListController' => 'PhabricatorFileController',
+ 'PhabricatorFileTransformTestCase' => 'PhabricatorTestCase',
'PhabricatorFileUploadController' => 'PhabricatorFileController',
'PhabricatorFileUploadDialogController' => 'PhabricatorFileController',
'PhabricatorFileUploadException' => 'Exception',
@@ -5417,6 +5457,7 @@
'PhabricatorInternationalizationManagementWorkflow' => 'PhabricatorManagementWorkflow',
'PhabricatorInvalidConfigSetupCheck' => 'PhabricatorSetupCheck',
'PhabricatorIteratedMD5PasswordHasher' => 'PhabricatorPasswordHasher',
+ 'PhabricatorIteratedMD5PasswordHasherTestCase' => 'PhabricatorTestCase',
'PhabricatorJIRAAuthProvider' => 'PhabricatorOAuth1AuthProvider',
'PhabricatorJavelinLinter' => 'ArcanistLinter',
'PhabricatorJiraIssueHasObjectEdgeType' => 'PhabricatorEdgeType',
@@ -5637,6 +5678,7 @@
'PhabricatorOwnersPath' => 'PhabricatorOwnersDAO',
'PhabricatorOwnersPathsController' => 'PhabricatorOwnersController',
'PhabricatorPHDConfigOptions' => 'PhabricatorApplicationConfigOptions',
+ 'PhabricatorPHIDTypeTestCase' => 'PhutilTestCase',
'PhabricatorPHPASTApplication' => 'PhabricatorApplication',
'PhabricatorPHPConfigSetupCheck' => 'PhabricatorSetupCheck',
'PhabricatorPHPMailerConfigOptions' => 'PhabricatorApplicationConfigOptions',
@@ -5745,6 +5787,7 @@
'PhabricatorPolicyCanJoinCapability' => 'PhabricatorPolicyCapability',
'PhabricatorPolicyCanViewCapability' => 'PhabricatorPolicyCapability',
'PhabricatorPolicyCapability' => 'Phobject',
+ 'PhabricatorPolicyCapabilityTestCase' => 'PhabricatorTestCase',
'PhabricatorPolicyConfigOptions' => 'PhabricatorApplicationConfigOptions',
'PhabricatorPolicyController' => 'PhabricatorController',
'PhabricatorPolicyDAO' => 'PhabricatorLiskDAO',
@@ -6034,6 +6077,7 @@
'PhabricatorSearchDocumentRelationship' => 'PhabricatorSearchDAO',
'PhabricatorSearchDocumentTypeDatasource' => 'PhabricatorTypeaheadDatasource',
'PhabricatorSearchEditController' => 'PhabricatorSearchBaseController',
+ 'PhabricatorSearchEngineTestCase' => 'PhabricatorTestCase',
'PhabricatorSearchField' => 'Phobject',
'PhabricatorSearchHovercardController' => 'PhabricatorSearchBaseController',
'PhabricatorSearchManagementIndexWorkflow' => 'PhabricatorSearchManagementWorkflow',
@@ -6063,6 +6107,7 @@
'PhabricatorSettingsAdjustController' => 'PhabricatorController',
'PhabricatorSettingsApplication' => 'PhabricatorApplication',
'PhabricatorSettingsMainController' => 'PhabricatorController',
+ 'PhabricatorSetupCheckTestCase' => 'PhabricatorTestCase',
'PhabricatorSetupIssueUIExample' => 'PhabricatorUIExample',
'PhabricatorSetupIssueView' => 'AphrontView',
'PhabricatorSlowvoteApplication' => 'PhabricatorApplication',
@@ -6547,6 +6592,7 @@
'PhortunePaymentProviderConfigTransaction' => 'PhabricatorApplicationTransaction',
'PhortunePaymentProviderConfigTransactionQuery' => 'PhabricatorApplicationTransactionQuery',
'PhortunePaymentProviderPHIDType' => 'PhabricatorPHIDType',
+ 'PhortunePaymentProviderTestCase' => 'PhabricatorTestCase',
'PhortuneProduct' => array(
'PhortuneDAO',
'PhabricatorPolicyInterface',
diff --git a/src/applications/almanac/servicetype/__tests__/AlmanacServiceTypeTestCase.php b/src/applications/almanac/servicetype/__tests__/AlmanacServiceTypeTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/almanac/servicetype/__tests__/AlmanacServiceTypeTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class AlmanacServiceTypeTestCase extends PhabricatorTestCase {
+
+ public function testGetAllServiceTypes() {
+ AlmanacServiceType::getAllServiceTypes();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/auth/factor/__tests__/PhabricatorAuthFactorTestCase.php b/src/applications/auth/factor/__tests__/PhabricatorAuthFactorTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/auth/factor/__tests__/PhabricatorAuthFactorTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class PhabricatorAuthFactorTestCase extends PhabricatorTestCase {
+
+ public function testGetAllFactors() {
+ PhabricatorAuthFactor::getAllFactors();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/base/__tests__/PhabricatorApplicationTestCase.php b/src/applications/base/__tests__/PhabricatorApplicationTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/base/__tests__/PhabricatorApplicationTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class PhabricatorApplicationTestCase extends PhabricatorTestCase {
+
+ public function testGetAllApplications() {
+ PhabricatorApplication::getAllApplications();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/celerity/resources/CelerityPhysicalResources.php b/src/applications/celerity/resources/CelerityPhysicalResources.php
--- a/src/applications/celerity/resources/CelerityPhysicalResources.php
+++ b/src/applications/celerity/resources/CelerityPhysicalResources.php
@@ -21,6 +21,7 @@
public static function getAll() {
static $resources_map;
+
if ($resources_map === null) {
$resources_map = array();
diff --git a/src/applications/celerity/resources/__tests__/CelerityPhysicalResourcesTestCase.php b/src/applications/celerity/resources/__tests__/CelerityPhysicalResourcesTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/celerity/resources/__tests__/CelerityPhysicalResourcesTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class CelerityPhysicalResourcesTestCase extends PhabricatorTestCase {
+
+ public function testGetAll() {
+ CelerityPhysicalResources::getAll();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/conduit/method/ConduitAPIMethod.php b/src/applications/conduit/method/ConduitAPIMethod.php
--- a/src/applications/conduit/method/ConduitAPIMethod.php
+++ b/src/applications/conduit/method/ConduitAPIMethod.php
@@ -115,7 +115,7 @@
return head(explode('.', $this->getAPIMethodName(), 2));
}
- public static function getConduitMethod($method_name) {
+ public static function loadAllConduitMethods() {
static $method_map = null;
if ($method_map === null) {
@@ -143,6 +143,16 @@
}
}
+ return $method_map;
+ }
+
+ public static function getConduitMethod($method_name) {
+ static $method_map = null;
+
+ if ($method_map === null) {
+ $methods = self::loadAllConduitMethods();
+ }
+
return idx($method_map, $method_name);
}
diff --git a/src/applications/conduit/method/__tests__/ConduitAPIMethodTestCase.php b/src/applications/conduit/method/__tests__/ConduitAPIMethodTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/conduit/method/__tests__/ConduitAPIMethodTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class ConduitAPIMethodTestCase extends PhabricatorTestCase {
+
+ public function testLoadAllConduitMethods() {
+ ConduitAPIMethod::loadAllConduitMethods();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/config/check/PhabricatorSetupCheck.php b/src/applications/config/check/PhabricatorSetupCheck.php
--- a/src/applications/config/check/PhabricatorSetupCheck.php
+++ b/src/applications/config/check/PhabricatorSetupCheck.php
@@ -111,7 +111,7 @@
}
}
- final public static function runAllChecks() {
+ final public static function loadAllChecks() {
$symbols = id(new PhutilSymbolLoader())
->setAncestorClass(__CLASS__)
->setConcreteOnly(true)
@@ -122,7 +122,11 @@
$checks[] = newv($symbol['name'], array());
}
- $checks = msort($checks, 'getExecutionOrder');
+ return msort($checks, 'getExecutionOrder');
+ }
+
+ final public static function runAllChecks() {
+ $checks = self::loadAllChecks();
$issues = array();
foreach ($checks as $check) {
diff --git a/src/applications/config/check/__tests__/PhabricatorSetupCheckTestCase.php b/src/applications/config/check/__tests__/PhabricatorSetupCheckTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/config/check/__tests__/PhabricatorSetupCheckTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class PhabricatorSetupCheckTestCase extends PhabricatorTestCase {
+
+ public function testLoadAllChecks() {
+ PhabricatorSetupCheck::loadAllChecks();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/drydock/blueprint/__tests__/DrydockBlueprintImplementationTestCase.php b/src/applications/drydock/blueprint/__tests__/DrydockBlueprintImplementationTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/drydock/blueprint/__tests__/DrydockBlueprintImplementationTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class DrydockBlueprintImplementationTestCase extends PhabricatorTestCase {
+
+ public function testGetAllBlueprintImplementations() {
+ DrydockBlueprintImplementation::getAllBlueprintImplementations();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/fact/engine/__tests__/PhabricatorFactEngineTestCase.php b/src/applications/fact/engine/__tests__/PhabricatorFactEngineTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/fact/engine/__tests__/PhabricatorFactEngineTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class PhabricatorFactEngineTestCase extends PhabricatorTestCase {
+
+ public function testLoadAllEngines() {
+ PhabricatorFactEngine::loadAllEngines();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/files/engine/__tests__/PhabricatorFileStorageEngineTestCase.php b/src/applications/files/engine/__tests__/PhabricatorFileStorageEngineTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/files/engine/__tests__/PhabricatorFileStorageEngineTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class PhabricatorFileStorageEngineTestCase extends PhabricatorTestCase {
+
+ public function testLoadAllEngines() {
+ PhabricatorFileStorageEngine::loadAllEngines();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/files/transform/__tests__/PhabricatorFileTransformTestCase.php b/src/applications/files/transform/__tests__/PhabricatorFileTransformTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/files/transform/__tests__/PhabricatorFileTransformTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class PhabricatorFileTransformTestCase extends PhabricatorTestCase {
+
+ public function testGetAllTransforms() {
+ PhabricatorFileTransform::getAllTransforms();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/harbormaster/step/__tests__/HarbormasterBuildStepImplementationTestCase.php b/src/applications/harbormaster/step/__tests__/HarbormasterBuildStepImplementationTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/harbormaster/step/__tests__/HarbormasterBuildStepImplementationTestCase.php
@@ -0,0 +1,11 @@
+<?php
+
+final class HarbormasterBuildStepImplementationTestCase
+ extends PhabricatorTestCase {
+
+ public function testGetImplementations() {
+ HarbormasterBuildStepImplementation::getImplementations();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/maniphest/export/__tests__/ManiphestExcelFormatTestCase.php b/src/applications/maniphest/export/__tests__/ManiphestExcelFormatTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/maniphest/export/__tests__/ManiphestExcelFormatTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class ManiphestExcelFormatTestCase extends PhabricatorTestCase {
+
+ public function testLoadAllFormats() {
+ ManiphestExcelFormat::loadAllFormats();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/meta/panel/__tests__/PhabricatorApplicationConfigurationPanelTestCase.php b/src/applications/meta/panel/__tests__/PhabricatorApplicationConfigurationPanelTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/meta/panel/__tests__/PhabricatorApplicationConfigurationPanelTestCase.php
@@ -0,0 +1,11 @@
+<?php
+
+final class PhabricatorApplicationConfigurationPanelTestCase
+ extends PhabricatorTestCase {
+
+ public function testLoadAllPanels() {
+ PhabricatorApplicationConfigurationPanel::loadAllPanels();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/metamta/command/__tests__/MetaMTAEmailTransactionCommandTestCase.php b/src/applications/metamta/command/__tests__/MetaMTAEmailTransactionCommandTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/metamta/command/__tests__/MetaMTAEmailTransactionCommandTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class MetaMTAEmailTransactionCommandTestCase extends PhabricatorTestCase {
+
+ public function testGetAllTypes() {
+ MetaMTAEmailTransactionCommand::getAllCommands();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/nuance/source/__tests__/NuanceSourceDefinitionTestCase.php b/src/applications/nuance/source/__tests__/NuanceSourceDefinitionTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/nuance/source/__tests__/NuanceSourceDefinitionTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class NuanceSourceDefinitionTestCase extends PhabricatorTestCase {
+
+ public function testGetAllTypes() {
+ NuanceSourceDefinition::getAllDefinitions();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/passphrase/credentialtype/__tests__/PassphraseCredentialTypeTestCase.php b/src/applications/passphrase/credentialtype/__tests__/PassphraseCredentialTypeTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/passphrase/credentialtype/__tests__/PassphraseCredentialTypeTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class PassphraseCredentialTypeTestCase extends PhabricatorTestCase {
+
+ public function testGetAllTypes() {
+ PassphraseCredentialType::getAllTypes();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/phid/type/PhabricatorPHIDType.php b/src/applications/phid/type/PhabricatorPHIDType.php
--- a/src/applications/phid/type/PhabricatorPHIDType.php
+++ b/src/applications/phid/type/PhabricatorPHIDType.php
@@ -158,7 +158,7 @@
*
* @return dict<string, PhabricatorPHIDType> Map of type constants to types.
*/
- public static function getAllTypes() {
+ final public static function getAllTypes() {
static $types;
if ($types === null) {
$objects = id(new PhutilSymbolLoader())
diff --git a/src/applications/phid/type/__tests__/PhabricatorPHIDTypeTestCase.php b/src/applications/phid/type/__tests__/PhabricatorPHIDTypeTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/phid/type/__tests__/PhabricatorPHIDTypeTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class PhabricatorPHIDTypeTestCase extends PhutilTestCase {
+
+ public function testGetAllTypes() {
+ PhabricatorPHIDType::getAllTypes();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/phortune/provider/__tests__/PhortunePaymentProviderTestCase.php b/src/applications/phortune/provider/__tests__/PhortunePaymentProviderTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/phortune/provider/__tests__/PhortunePaymentProviderTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class PhortunePaymentProviderTestCase extends PhabricatorTestCase {
+
+ public function testGetAllProviders() {
+ PhortunePaymentProvider::getAllProviders();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/policy/capability/__tests__/PhabricatorPolicyCapabilityTestCase.php b/src/applications/policy/capability/__tests__/PhabricatorPolicyCapabilityTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/policy/capability/__tests__/PhabricatorPolicyCapabilityTestCase.php
@@ -0,0 +1,11 @@
+<?php
+
+final class PhabricatorPolicyCapabilityTestCase
+ extends PhabricatorTestCase {
+
+ public function testGetCapabilityMap() {
+ PhabricatorPolicyCapability::getCapabilityMap();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/search/engine/__tests__/PhabricatorApplicationSearchEngineTestCase.php b/src/applications/search/engine/__tests__/PhabricatorApplicationSearchEngineTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/search/engine/__tests__/PhabricatorApplicationSearchEngineTestCase.php
@@ -0,0 +1,11 @@
+<?php
+
+final class PhabricatorApplicationSearchEngineTestCase
+ extends PhabricatorTestCase {
+
+ public function testGetAllEngines() {
+ PhabricatorApplicationSearchEngine::getAllEngines();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/applications/search/engine/__tests__/PhabricatorSearchEngineTestCase.php b/src/applications/search/engine/__tests__/PhabricatorSearchEngineTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/applications/search/engine/__tests__/PhabricatorSearchEngineTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class PhabricatorSearchEngineTestCase extends PhabricatorTestCase {
+
+ public function testLoadAllEngines() {
+ PhabricatorSearchEngine::loadAllEngines();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/infrastructure/edges/type/__tests__/PhabricatorEdgeTypeTestCase.php b/src/infrastructure/edges/type/__tests__/PhabricatorEdgeTypeTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/infrastructure/edges/type/__tests__/PhabricatorEdgeTypeTestCase.php
@@ -0,0 +1,10 @@
+<?php
+
+final class PhabricatorEdgeTypeTestCase extends PhabricatorTestCase {
+
+ public function testGetAllTypes() {
+ PhabricatorEdgeType::getAllTypes();
+ $this->assertTrue(true);
+ }
+
+}
diff --git a/src/infrastructure/util/password/__tests__/PhabricatorIteratedMD5PasswordHasherTestCase.php b/src/infrastructure/util/password/__tests__/PhabricatorIteratedMD5PasswordHasherTestCase.php
new file mode 100644
--- /dev/null
+++ b/src/infrastructure/util/password/__tests__/PhabricatorIteratedMD5PasswordHasherTestCase.php
@@ -0,0 +1,15 @@
+<?php
+
+final class PhabricatorIteratedMD5PasswordHasherTestCase
+ extends PhabricatorTestCase {
+
+ public function testHasher() {
+ $hasher = new PhabricatorIteratedMD5PasswordHasher();
+
+ $this->assertEqual(
+ 'md5:4824a35493d8b5dceab36f017d68425f',
+ $hasher->getPasswordHashForStorage(
+ new PhutilOpaqueEnvelope('quack'))->openEnvelope());
+ }
+
+}
diff --git a/src/infrastructure/util/password/__tests__/PhabricatorPasswordHasherTestCase.php b/src/infrastructure/util/password/__tests__/PhabricatorPasswordHasherTestCase.php
--- a/src/infrastructure/util/password/__tests__/PhabricatorPasswordHasherTestCase.php
+++ b/src/infrastructure/util/password/__tests__/PhabricatorPasswordHasherTestCase.php
@@ -28,13 +28,9 @@
pht('Fictional hasher unavailable.'));
}
- public function testMD5Hasher() {
- $hasher = new PhabricatorIteratedMD5PasswordHasher();
-
- $this->assertEqual(
- 'md5:4824a35493d8b5dceab36f017d68425f',
- $hasher->getPasswordHashForStorage(
- new PhutilOpaqueEnvelope('quack'))->openEnvelope());
+ public function testGetAllHashers() {
+ PhabricatorPasswordHasher::getAllHashers();
+ $this->assertTrue(true);
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 16, 6:06 AM (3 w, 3 h ago)
Storage Engine
amazon-s3
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
phabricator/secure/na/2y/xk4xlbr2njyh2sg3
Default Alt Text
D13272.id32071.diff (43 KB)

Event Timeline