ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
InterruptiveItemTest.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
31class TestingItem extends Item
32{
33}
34
36{
37 public function testConstruction(): void
38 {
39 $item = new TestingItem('1');
40 $this->assertInstanceOf(
41 Item::class,
42 $item
43 );
44 }
45
46 #[\PHPUnit\Framework\Attributes\Depends('testConstruction')]
47 public function testGetId(): void
48 {
49 $id = '1';
50 $item = new TestingItem($id);
51 $this->assertEquals($id, $item->getId());
52 }
53}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
Provides common functionality for UI tests.
Definition: Base.php:337
Dummy-implementation for testing.