function InstallTasksTest::testNameAndMinimumVersion
Tests name and minimum version.
@legacy-covers ::minimumVersion @legacy-covers ::name
Attributes
#[DataProvider('providerNameAndMinimumVersion')]
File
-
core/
modules/ mysql/ tests/ src/ Unit/ InstallTasksTest.php, line 123
Class
- InstallTasksTest
- Tests the MySQL install tasks.
Namespace
Drupal\Tests\mysql\UnitCode
public function testNameAndMinimumVersion(bool $is_mariadb, string $expected_name, string $expected_minimum_version) : void {
$this->connection
->isMariaDb()
->shouldBeCalledTimes(2)
->willReturn($is_mariadb);
$tasks = $this->createTasks();
$minimum_version = $tasks->minimumVersion();
$name = $tasks->name();
$this->assertSame($expected_minimum_version, $minimum_version);
$this->assertSame($expected_name, $name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.