ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
InterruptiveItemFactoryTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21require_once("vendor/composer/vendor/autoload.php");
22require_once(__DIR__ . "../../../../Base.php");
23
27
29{
30 protected function getFactory(): Factory
31 {
32 return new Factory();
33 }
34
35 public function testStandard(): void
36 {
37 $factory = $this->getFactory();
38 $this->assertInstanceOf(
39 I\Modal\InterruptiveItem\Standard::class,
40 $factory->standard('id', 'title')
41 );
42 }
43
44 public function testKeyValue(): void
45 {
46 $factory = $this->getFactory();
47 $this->assertInstanceOf(
48 I\Modal\InterruptiveItem\KeyValue::class,
49 $factory->keyValue('id', 'key', 'label')
50 );
51 }
52}
Provides common functionality for UI tests.
Definition: Base.php:337