function ConfigTest::provideGetMessageText

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Plugin/ProjectMessage/ConfigTest.php \Drupal\Tests\Composer\Plugin\ProjectMessage\ConfigTest::provideGetMessageText()
  2. 8.9.x core/tests/Drupal/Tests/Composer/Plugin/ProjectMessage/ConfigTest.php \Drupal\Tests\Composer\Plugin\ProjectMessage\ConfigTest::provideGetMessageText()
  3. 10 core/tests/Drupal/Tests/Composer/Plugin/ProjectMessage/ConfigTest.php \Drupal\Tests\Composer\Plugin\ProjectMessage\ConfigTest::provideGetMessageText()

File

core/tests/Drupal/Tests/Composer/Plugin/ProjectMessage/ConfigTest.php, line 27

Class

ConfigTest
@coversDefaultClass <a href="/api/drupal/composer%21Plugin%21ProjectMessage%21Message.php/class/Message/11.x" title="Determine configuration." class="local">Drupal\Composer\Plugin\ProjectMessage\Message</a> @group ProjectMessage

Namespace

Drupal\Tests\Composer\Plugin\ProjectMessage

Code

public static function provideGetMessageText() {
    return [
        [
            [],
            [],
        ],
        [
            [
                'Special',
                'File',
            ],
            [
                'drupal-core-project-message' => [
                    'event-name-file' => vfsStream::url('config_test/bespoke/special_file.txt'),
                ],
            ],
        ],
        [
            [
                'I am the message.',
            ],
            [
                'drupal-core-project-message' => [
                    'event-name-message' => [
                        'I am the message.',
                    ],
                ],
            ],
        ],
        [
            [
                'This message overrides file.',
            ],
            [
                'drupal-core-project-message' => [
                    'event-name-message' => [
                        'This message overrides file.',
                    ],
                    'event-name-file' => vfsStream::url('config_test/bespoke/special_file.txt'),
                ],
            ],
        ],
    ];
}

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