function InstallTasksTest::testNameAndMinimumVersion

Same name in other branches
  1. 10 core/modules/mysql/tests/src/Unit/InstallTasksTest.php \Drupal\Tests\mysql\Unit\InstallTasksTest::testNameAndMinimumVersion()
  2. 11.x core/modules/mysql/tests/src/Unit/InstallTasksTest.php \Drupal\Tests\mysql\Unit\InstallTasksTest::testNameAndMinimumVersion()

@covers ::minimumVersion @covers ::name @dataProvider providerNameAndMinimumVersion

File

core/modules/mysql/tests/src/Unit/InstallTasksTest.php, line 91

Class

InstallTasksTest
Tests the MySQL install tasks.

Namespace

Drupal\Tests\mysql\Unit

Code

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.