ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  {
33  define("ANONYMOUS_USER_ID", 13);
34  }
35 
36  $suite = new self();
37 
38  require_once 'Services/Contact/BuddySystem/test/states/ilBuddySystemUnlinkedStateRelationTest.php';
39  $suite->addTestSuite('ilBuddySystemUnlinkedStateRelationTest');
40 
41  require_once 'Services/Contact/BuddySystem/test/states/ilBuddySystemRequestedStateRelationTest.php';
42  $suite->addTestSuite('ilBuddySystemRequestedStateRelationTest');
43 
44  require_once 'Services/Contact/BuddySystem/test/states/ilBuddySystemRequestIgnoredStateRelationTest.php';
45  $suite->addTestSuite('ilBuddySystemRequestIgnoredStateRelationTest');
46 
47  require_once 'Services/Contact/BuddySystem/test/states/ilBuddySystemLinkedStateRelationTest.php';
48  $suite->addTestSuite('ilBuddySystemLinkedStateRelationTest');
49 
50  require_once 'Services/Contact/BuddySystem/test/ilBuddyListTest.php';
51  $suite->addTestSuite('ilBuddyListTest');
52 
53  require_once 'Services/Contact/BuddySystem/test/ilBuddySystemRelationTest.php';
54  $suite->addTestSuite('ilBuddySystemRelationTest');
55 
56  require_once 'Services/Contact/BuddySystem/test/ilBuddySystemRelationCollectionTest.php';
57  $suite->addTestSuite('ilBuddySystemRelationCollectionTest');
58 
59  return $suite;
60  }
61 }
$suite
$GLOBALS["DIC"]
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27