mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-10-24 17:48:50 +02:00
ac92f9bdfc
Summary: Installations extend this. Another solution would be to extend `ArcanistLinterTestCase` from `ArcanistArcanistLinterTestCase` and return null in `getLink()` to avoid code duplication but I prefer clean class hierarchy. Test Plan: $ arc unit Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3878
17 lines
453 B
PHP
17 lines
453 B
PHP
<?php
|
|
|
|
/**
|
|
* @group testcase
|
|
*/
|
|
abstract class ArcanistArcanistLinterTestCase extends ArcanistLinterTestCase {
|
|
|
|
protected function getLink($method) {
|
|
// This could be converted to trait from ArcanistTestCase.
|
|
$arcanist_project = 'PHID-APRJ-703e0b140530f17ede30';
|
|
return
|
|
'https://secure.phabricator.com/diffusion/symbol/'.$method.
|
|
'/?lang=php&projects='.$arcanist_project.
|
|
'&jump=true&context='.get_class($this);
|
|
}
|
|
|
|
}
|