1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

T5423, "is newly created" herald rule fails on dry runs

Summary: Fixes T5423, "is newly created" herald rule fails on dry runs

Test Plan: Create herald "is newly created" rule, and do a dry run on an existing pholio mock, differential commit, or maniphest task. Should not return an exception.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5423

Differential Revision: https://secure.phabricator.com/D10187
This commit is contained in:
lkassianik 2014-08-07 17:04:41 -07:00 committed by epriestley
parent c6998207ab
commit 7204f9fec2

View file

@ -51,6 +51,8 @@ final class HeraldTestConsoleController extends HeraldController {
throw new Exception('Can not build adapter for object!');
}
$adapter->setIsNewObject(false);
$rules = id(new HeraldRuleQuery())
->setViewer($user)
->withContentTypes(array($adapter->getAdapterContentType()))