ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilBuddySystemTestSuite.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once("libs/composer/vendor/autoload.php");
5 $GLOBALS["DIC"] = new \ILIAS\DI\Container();
6 
7 require_once 'Services/Database/interfaces/interface.ilDBInterface.php';
8 require_once 'Services/Database/classes/class.ilDBConstants.php';
9 require_once 'Services/User/classes/class.ilObjUser.php';
10 require_once 'Services/EventHandling/classes/class.ilAppEventHandler.php';
11 require_once 'Services/Contact/BuddySystem/classes/class.ilBuddyList.php';
12 require_once 'Services/Contact/BuddySystem/classes/class.ilBuddySystemRelation.php';
13 require_once 'Services/Contact/BuddySystem/classes/class.ilBuddySystemRelationCollection.php';
14 require_once 'Services/Contact/BuddySystem/classes/states/class.ilBuddySystemLinkedRelationState.php';
15 require_once 'Services/Contact/BuddySystem/classes/states/class.ilBuddySystemUnlinkedRelationState.php';
16 require_once 'Services/Contact/BuddySystem/classes/states/class.ilBuddySystemRequestedRelationState.php';
17 require_once 'Services/Contact/BuddySystem/classes/states/class.ilBuddySystemIgnoredRequestRelationState.php';
18 require_once 'Services/Contact/BuddySystem/exceptions/class.ilBuddySystemRelationStateException.php';
19 
25 {
29  public static function suite()
30  {
31  if (!defined("ANONYMOUS_USER_ID")) {
32  define("ANONYMOUS_USER_ID", 13);
33  }
34 
35  $suite = new self();
36 
37  require_once 'Services/Contact/BuddySystem/test/states/ilBuddySystemUnlinkedStateRelationTest.php';
38  $suite->addTestSuite('ilBuddySystemUnlinkedStateRelationTest');
39 
40  require_once 'Services/Contact/BuddySystem/test/states/ilBuddySystemRequestedStateRelationTest.php';
41  $suite->addTestSuite('ilBuddySystemRequestedStateRelationTest');
42 
43  require_once 'Services/Contact/BuddySystem/test/states/ilBuddySystemRequestIgnoredStateRelationTest.php';
44  $suite->addTestSuite('ilBuddySystemRequestIgnoredStateRelationTest');
45 
46  require_once 'Services/Contact/BuddySystem/test/states/ilBuddySystemLinkedStateRelationTest.php';
47  $suite->addTestSuite('ilBuddySystemLinkedStateRelationTest');
48 
49  require_once 'Services/Contact/BuddySystem/test/ilBuddyListTest.php';
50  $suite->addTestSuite('ilBuddyListTest');
51 
52  require_once 'Services/Contact/BuddySystem/test/ilBuddySystemRelationTest.php';
53  $suite->addTestSuite('ilBuddySystemRelationTest');
54 
55  require_once 'Services/Contact/BuddySystem/test/ilBuddySystemRelationCollectionTest.php';
56  $suite->addTestSuite('ilBuddySystemRelationCollectionTest');
57 
58  return $suite;
59  }
60 }
$suite
$GLOBALS["DIC"]