mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Replace dedicated Commit Field with an existing one
Summary: fix T15600 Test Plan: arc diff against this Reviewers: Sten, O1 Blessed Committers! Reviewed By: Sten Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Maniphest Tasks: T15600 Differential Revision: https://we.phorge.it/D25385
This commit is contained in:
parent
8310591523
commit
eb0bb17368
3 changed files with 1 additions and 13 deletions
|
@ -714,7 +714,6 @@ phutil_register_library_map(array(
|
|||
'DifferentialTabReplacementTestCase' => 'applications/differential/parser/__tests__/DifferentialTabReplacementTestCase.php',
|
||||
'DifferentialTagsCommitMessageField' => 'applications/differential/field/DifferentialTagsCommitMessageField.php',
|
||||
'DifferentialTasksCommitMessageField' => 'applications/differential/field/DifferentialTasksCommitMessageField.php',
|
||||
'DifferentialTestCommitMessageField' => 'applications/differential/field/DifferentialTestCommitMessageField.php',
|
||||
'DifferentialTestPlanCommitMessageField' => 'applications/differential/field/DifferentialTestPlanCommitMessageField.php',
|
||||
'DifferentialTestPlanField' => 'applications/differential/customfield/DifferentialTestPlanField.php',
|
||||
'DifferentialTitleCommitMessageField' => 'applications/differential/field/DifferentialTitleCommitMessageField.php',
|
||||
|
@ -6761,7 +6760,6 @@ phutil_register_library_map(array(
|
|||
'DifferentialTabReplacementTestCase' => 'PhabricatorTestCase',
|
||||
'DifferentialTagsCommitMessageField' => 'DifferentialCommitMessageField',
|
||||
'DifferentialTasksCommitMessageField' => 'DifferentialCommitMessageField',
|
||||
'DifferentialTestCommitMessageField' => 'DifferentialCommitMessageField',
|
||||
'DifferentialTestPlanCommitMessageField' => 'DifferentialCommitMessageField',
|
||||
'DifferentialTestPlanField' => 'DifferentialCoreCustomField',
|
||||
'DifferentialTitleCommitMessageField' => 'DifferentialCommitMessageField',
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* This class should only be used for unit tests
|
||||
*/
|
||||
final class DifferentialTestCommitMessageField
|
||||
extends DifferentialCommitMessageField {
|
||||
public function getFieldName() { return 'Test'; }
|
||||
public function getFieldOrder() { return 1; }
|
||||
}
|
|
@ -29,7 +29,7 @@ final class DifferentialCommitMessageFieldTestCase
|
|||
}
|
||||
|
||||
public function testRenderFieldValue() {
|
||||
$test_object = new DifferentialTestCommitMessageField();
|
||||
$test_object = new DifferentialRevertPlanCommitMessageField();
|
||||
$this->assertEqual('foo', $test_object->renderFieldValue('foo'),
|
||||
'Normal strings should be rendered unaltered');
|
||||
|
||||
|
|
Loading…
Reference in a new issue