ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAssLacAbstractManufacturerTest.php
Go to the documentation of this file.
1 <?php
2 
29 {
30  protected $backupGlobals = false;
31 
33 
34  protected function setUp(): void
35  {
36  parent::setUp();
37 
38  $ilAssLacAbstractComposite = $this->createMock(ilAssLacAbstractComposite::class);
39 
40  $this->object = new class ($ilAssLacAbstractComposite) extends ilAssLacAbstractManufacturer {
41  public function __construct(
42  private readonly ilAssLacAbstractComposite $ilAssLacAbstractComposite
43  ) {
44  }
45 
46  public static function _getInstance(): ?ilAssLacManufacturerInterface
47  {
48  return null;
49  }
50 
51  public function manufacture(string $attribute): ilAssLacAbstractComposite
52  {
53  return $this->ilAssLacAbstractComposite;
54  }
55 
56  public function getPattern(): string
57  {
58  return '';
59  }
60  };
61  }
62 
63  public function testConstruct(): void
64  {
65  $this->assertInstanceOf(ilAssLacAbstractManufacturer::class, $this->object);
66  }
67 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class assBaseTestCase.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)