Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phid/type/__tests__/PhabricatorPHIDTypeTestCase.php
<?php | <?php | ||||
final class PhabricatorPHIDTypeTestCase extends PhutilTestCase { | final class PhabricatorPHIDTypeTestCase extends PhutilTestCase { | ||||
public function testGetAllTypes() { | public function testGetAllTypes() { | ||||
PhabricatorPHIDType::getAllTypes(); | PhabricatorPHIDType::getAllTypes(); | ||||
$this->assertTrue(true); | $this->assertTrue(true); | ||||
} | } | ||||
public function testGetPHIDTypeApplicationClass() { | |||||
$types = PhabricatorPHIDType::getAllTypes(); | |||||
foreach ($types as $type) { | |||||
$application_class = $type->getPHIDTypeApplicationClass(); | |||||
if ($application_class !== null) { | |||||
$this->assertTrue(class_exists($application_class)); | |||||
} | |||||
} | |||||
} | |||||
} | } |