public function TasksTest::testNameAndMinimumVersion in Drupal 9
@covers ::minimumVersion @covers ::name @dataProvider providerNameAndMinimumVersion
File
- core/
tests/ Drupal/ Tests/ Core/ Database/ Driver/ mysql/ install/ TasksTest.php, line 91
Class
- TasksTest
- Tests the MySQL install tasks.
Namespace
Drupal\Tests\Core\Database\Driver\mysql\installCode
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);
}