ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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}
An exception for terminatinating execution or to throw for unit testing.
Class ilTermsOfServiceBaseTest.
Class ilTermsOfServiceEntityFactoryTest.
Class ilTermsOfServiceEntityFactory.
$factory
Definition: metadata.php:58