~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to phabricator/src/infrastructure/edges/__tests__/PhabricatorEdgeTestCase.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-01-29 00:15:58 UTC
  • mfrom: (0.14.1) (0.13.1) (0.10.2) (2.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20150129001558-7qklhtcc043y9mog
Tags: 0~git20150129-1
* New snapshot release
* restricted access to local config file (closes: #775479)
* moved local config file to /var/lib/phabricator (closes: #775478)
* switched mysql-server dependency to recommends (closes: #773536)
* use /run instead of /var/run (closes: #775803)
* prevent package reinstall from overwritting local changes (closes: #776288)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    $phid2 = $obj2->getPHID();
22
22
 
23
23
    $editor = id(new PhabricatorEdgeEditor())
24
 
      ->addEdge($phid1, PhabricatorEdgeConfig::TYPE_TEST_NO_CYCLE, $phid2)
25
 
      ->addEdge($phid2, PhabricatorEdgeConfig::TYPE_TEST_NO_CYCLE, $phid1);
 
24
      ->addEdge($phid1, PhabricatorTestNoCycleEdgeType::EDGECONST , $phid2)
 
25
      ->addEdge($phid2, PhabricatorTestNoCycleEdgeType::EDGECONST , $phid1);
26
26
 
27
27
    $caught = null;
28
28
    try {
38
38
    // fail (it introduces a cycle).
39
39
 
40
40
    $editor = id(new PhabricatorEdgeEditor())
41
 
      ->addEdge($phid1, PhabricatorEdgeConfig::TYPE_TEST_NO_CYCLE, $phid2)
 
41
      ->addEdge($phid1, PhabricatorTestNoCycleEdgeType::EDGECONST , $phid2)
42
42
      ->save();
43
43
 
44
44
    $editor = id(new PhabricatorEdgeEditor())
45
 
      ->addEdge($phid2, PhabricatorEdgeConfig::TYPE_TEST_NO_CYCLE, $phid1);
 
45
      ->addEdge($phid2, PhabricatorTestNoCycleEdgeType::EDGECONST , $phid1);
46
46
 
47
47
    $caught = null;
48
48
    try {