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 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
5 
12 
13 require_once('./libs/composer/vendor/autoload.php');
14 
15 class GroupTest extends TestCase
16 {
20  private $group;
21 
25  private $dataFactory;
26 
30  private $language;
31 
32  public function setUp() : void
33  {
34  $this->dataFactory = new Factory();
35  $this->language = $this->getMockBuilder('\ilLanguage')
36  ->disableOriginalConstructor()
37  ->getMock();
38 
39  $this->group = new Group($this->dataFactory, $this->language);
40  }
41 
42  public function testIsNumericGroup()
43  {
44  $instance = $this->group->isNumeric();
45  $this->assertInstanceOf(IsNumeric::class, $instance);
46  }
47 }
Builds data types.
Definition: Factory.php:19
language()
Definition: language.php:2