ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
SettingsAdditionalTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 {
25  #[\PHPUnit\Framework\Attributes\DataProvider('getSkillsServiceEnabledDataProvider')]
26  public function testGetAndWithSkillsServiceEnabled(bool $io): void
27  {
28  $settings_additional = (new SettingsAdditional(0))->withSkillsServiceEnabled($io);
29 
30  $this->assertInstanceOf(SettingsAdditional::class, $settings_additional);
31  $this->assertEquals($io, $settings_additional->getSkillsServiceEnabled());
32  }
33 
34  public static function getSkillsServiceEnabledDataProvider(): array
35  {
36  return [
37  [true],
38  [false]
39  ];
40  }
41 
42  #[\PHPUnit\Framework\Attributes\DataProvider('getHideInfoTabDataProvider')]
43  public function testGetAndWithHideInfoTab(bool $io): void
44  {
45  $settings_additional = (new SettingsAdditional(0))->withHideInfoTab($io);
46 
47  $this->assertInstanceOf(SettingsAdditional::class, $settings_additional);
48  $this->assertEquals($io, $settings_additional->getHideInfoTab());
49  }
50 
51  public static function getHideInfoTabDataProvider(): array
52  {
53  return [
54  [true],
55  [false]
56  ];
57  }
58 }