mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Add a unit test to check src/__phutil_library_map__.php
.
Summary: See D9557. Add a unit test to ensure that `src/__phutil_library_map__.php` is up-to-date. Test Plan: Ran `arc unit`. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9558
This commit is contained in:
parent
4371cd81f5
commit
523d767646
2 changed files with 15 additions and 0 deletions
|
@ -88,6 +88,7 @@ phutil_register_library_map(array(
|
|||
'ArcanistHgProxyServer' => 'hgdaemon/ArcanistHgProxyServer.php',
|
||||
'ArcanistHgServerChannel' => 'hgdaemon/ArcanistHgServerChannel.php',
|
||||
'ArcanistHookAPI' => 'repository/hookapi/ArcanistHookAPI.php',
|
||||
'ArcanistInfrastructureTestCase' => '__tests__/ArcanistInfrastructureTestCase.php',
|
||||
'ArcanistInlinesWorkflow' => 'workflow/ArcanistInlinesWorkflow.php',
|
||||
'ArcanistInstallCertificateWorkflow' => 'workflow/ArcanistInstallCertificateWorkflow.php',
|
||||
'ArcanistJSHintLinter' => 'lint/linter/ArcanistJSHintLinter.php',
|
||||
|
@ -265,6 +266,7 @@ phutil_register_library_map(array(
|
|||
'ArcanistHelpWorkflow' => 'ArcanistBaseWorkflow',
|
||||
'ArcanistHgClientChannel' => 'PhutilProtocolChannel',
|
||||
'ArcanistHgServerChannel' => 'PhutilProtocolChannel',
|
||||
'ArcanistInfrastructureTestCase' => 'ArcanistTestCase',
|
||||
'ArcanistInlinesWorkflow' => 'ArcanistBaseWorkflow',
|
||||
'ArcanistInstallCertificateWorkflow' => 'ArcanistBaseWorkflow',
|
||||
'ArcanistJSHintLinter' => 'ArcanistExternalLinter',
|
||||
|
|
13
src/__tests__/ArcanistInfrastructureTestCase.php
Normal file
13
src/__tests__/ArcanistInfrastructureTestCase.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
final class ArcanistInfrastructureTestCase extends ArcanistTestCase {
|
||||
/**
|
||||
* This is more of an acceptance test case instead of a unit test. It verifies
|
||||
* that all symbols can be loaded correctly. It can catch problems like
|
||||
* missing methods in descendants of abstract base classes.
|
||||
*/
|
||||
public function testEverythingImplemented() {
|
||||
id(new PhutilSymbolLoader())->selectAndLoadSymbols();
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue