ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTermsOfServiceEntityFactoryTest.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 {
13  public function testInstanceCanBeCreated() : void
14  {
16 
17  $this->assertInstanceOf('ilTermsOfServiceEntityFactory', $factory);
18  }
19 
24  {
25  $this->expectException(InvalidArgumentException::class);
26 
28  $factory->getByName('PHP Unit');
29  }
30 
35  {
37 
38  $this->assertInstanceOf(
39  'ilTermsOfServiceAcceptanceEntity',
40  $factory->getByName('ilTermsOfServiceAcceptanceEntity')
41  );
42  }
43 }
Class ilTermsOfServiceEntityFactory.
Class ilTermsOfServiceEntityFactoryTest.
Class ilTermsOfServiceBaseTest.
$factory
Definition: metadata.php:58