You are here

public function ConfigTest::provideGetMessageText in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Composer/Plugin/ProjectMessage/ConfigTest.php \Drupal\Tests\Composer\Plugin\ProjectMessage\ConfigTest::provideGetMessageText()
  2. 9 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 25

Class

ConfigTest
@coversDefaultClass Drupal\Composer\Plugin\ProjectMessage\Message @group ProjectMessage

Namespace

Drupal\Tests\Composer\Plugin\ProjectMessage

Code

public 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'),
        ],
      ],
    ],
  ];
}