2011-10-20 03:26:21 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorInfrastructureTestCase
|
|
|
|
extends PhabricatorTestCase {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is more of an acceptance test case instead of a unittest. It verifies
|
2013-05-16 21:25:26 +02:00
|
|
|
* that all symbols can be loaded correctly. It can catch problems like
|
|
|
|
* missing methods in descendants of abstract base classes.
|
2011-10-20 03:26:21 +02:00
|
|
|
*/
|
|
|
|
public function testEverythingImplemented() {
|
2013-05-16 21:25:26 +02:00
|
|
|
id(new PhutilSymbolLoader())->selectAndLoadSymbols();
|
2011-10-20 03:26:21 +02:00
|
|
|
}
|
2013-05-16 21:25:26 +02:00
|
|
|
|
|
|
|
public function testApplicationsInstalled() {
|
|
|
|
$all = PhabricatorApplication::getAllApplications();
|
|
|
|
$installed = PhabricatorApplication::getAllInstalledApplications();
|
|
|
|
|
|
|
|
$this->assertEqual(
|
|
|
|
count($all),
|
|
|
|
count($installed),
|
|
|
|
'In test cases, all applications should default to installed.');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-10-20 03:26:21 +02:00
|
|
|
}
|
|
|
|
|