GenericTest.php
Namespace
Drupal\Tests\mysqli\FunctionalFile
-
core/
modules/ mysqli/ tests/ src/ Functional/ GenericTest.php
View source
<?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;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
/**
* Generic module test for 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']);
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| GenericTest | Generic module test for mysqli. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.