ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTermsOfServiceEntityFactoryTest.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/TermsOfService/classes/class.ilTermsOfServiceEntityFactory.php';
5 require_once 'Services/TermsOfService/classes/class.ilTermsOfServiceDataGatewayFactory.php';
6 
12 {
16  protected $backupGlobals = false;
17 
21  public function setUp()
22  {
23  }
24 
28  public function testInstanceCanBeCreated()
29  {
30  $factory = new ilTermsOfServiceEntityFactory();
31  $this->assertInstanceOf('ilTermsOfServiceEntityFactory', $factory);
32  }
33 
38  {
39  $factory = new ilTermsOfServiceEntityFactory();
40  $factory->getByName('PHP Unit');
41  }
42 
47  {
48  $factory = new ilTermsOfServiceEntityFactory();
49  $this->assertInstanceOf('ilTermsOfServiceAcceptanceEntity', $factory->getByName('ilTermsOfServiceAcceptanceEntity'));
50  }
51 }