mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-31 08:58:20 +01:00
Updated PhabricatorManiphestTaskTestDataGenerator to assign projects to the generated tasks.
Summary: To assist with {T5245}, I have added projects back into the lipsum maniphest generator with the edge infrastructure. Test Plan: Run the lipsum script for PhabricatorManiphestTaskTestDataGenerator and make sure it generates project data. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D10202
This commit is contained in:
parent
0292793d4d
commit
60fca1d7f4
1 changed files with 10 additions and 0 deletions
|
@ -38,6 +38,16 @@ final class PhabricatorManiphestTaskTestDataGenerator
|
|||
$transactions[] = $transaction;
|
||||
}
|
||||
|
||||
$transactions[] = id(new ManiphestTransaction())
|
||||
->setTransactionType(PhabricatorTransactions::TYPE_EDGE)
|
||||
->setMetadataValue(
|
||||
'edge:type',
|
||||
PhabricatorProjectObjectHasProjectEdgeType::EDGECONST)
|
||||
->setNewValue(
|
||||
array(
|
||||
'=' => array_fuse($this->getProjectPHIDs()),
|
||||
));
|
||||
|
||||
// Apply Transactions
|
||||
$editor = id(new ManiphestTransactionEditor())
|
||||
->setActor($author)
|
||||
|
|
Loading…
Add table
Reference in a new issue