function ValidationResultTest::providerValidConstructorArguments

Data provider for testCreateWarningResult().

Return value

mixed[] The test cases.

File

core/modules/package_manager/tests/src/Unit/ValidationResultTest.php, line 135

Class

ValidationResultTest
@coversDefaultClass \Drupal\package_manager\ValidationResult @group package_manager @internal

Namespace

Drupal\Tests\package_manager\Unit

Code

public static function providerValidConstructorArguments() : array {
    return [
        '1 message no summary' => [
            'messages' => [
                t('Something is wrong'),
            ],
            'summary' => NULL,
        ],
        '2 messages has summary' => [
            'messages' => [
                t('Something is wrong'),
                t('Something else is also wrong'),
            ],
            'summary' => 'This sums it up.',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.