blob: 7363810696067835560fe4169112bbb0effd653b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
declare(strict_types=1);
namespace Drupal\Tests\mysqli\Functional;
use Drupal\Core\Extension\ExtensionLifecycle;
use Drupal\Tests\system\Functional\Module\GenericModuleTestBase;
use PHPUnit\Framework\Attributes\Group;
/**
* Generic module test for mysqli.
*/
#[Group('mysqli')]
class GenericTest extends GenericModuleTestBase {
/**
* Checks visibility of the module.
*/
public function testMysqliModule(): void {
$module = $this->getModule();
\Drupal::service('module_installer')->install([$module]);
$info = \Drupal::service('extension.list.module')->getExtensionInfo($module);
$this->assertTrue($info['hidden']);
$this->assertSame(ExtensionLifecycle::EXPERIMENTAL, $info['lifecycle']);
}
}
|