ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
GroupTest.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
6 
11 
12 require_once('./libs/composer/vendor/autoload.php');
13 require_once('./tests/Refinery/TestCase.php');
14 
15 class GroupTest extends TestCase
16 {
20  private $group;
21 
25  private $dataFactory;
26 
27  public function setUp() : void
28  {
29  $this->dataFactory = new Factory();
30  $this->group = new Group($this->dataFactory);
31  }
32 
33  public function testChangeTimezone()
34  {
35  $instance = $this->group->changeTimezone('Europe/Berlin');
36  $this->assertInstanceOf(ChangeTimezone::class, $instance);
37  }
38 
40  {
41  $this->expectException(\InvalidArgumentException::class);
42  $instance = $this->group->changeTimezone('MiddleEarth/Minas_Morgul');
43  }
44 }
Builds data types.
Definition: Factory.php:19