function ConfigTest::testGetMessageText
Same name in other branches
- 9 core/tests/Drupal/Tests/Composer/Plugin/ProjectMessage/ConfigTest.php \Drupal\Tests\Composer\Plugin\ProjectMessage\ConfigTest::testGetMessageText()
- 8.9.x core/tests/Drupal/Tests/Composer/Plugin/ProjectMessage/ConfigTest.php \Drupal\Tests\Composer\Plugin\ProjectMessage\ConfigTest::testGetMessageText()
- 11.x core/tests/Drupal/Tests/Composer/Plugin/ProjectMessage/ConfigTest.php \Drupal\Tests\Composer\Plugin\ProjectMessage\ConfigTest::testGetMessageText()
@dataProvider provideGetMessageText @covers ::getText
File
-
core/
tests/ Drupal/ Tests/ Composer/ Plugin/ ProjectMessage/ ConfigTest.php, line 62
Class
- ConfigTest
- @coversDefaultClass Drupal\Composer\Plugin\ProjectMessage\Message @group ProjectMessage
Namespace
Drupal\Tests\Composer\Plugin\ProjectMessageCode
public function testGetMessageText($expected, $config) : void {
// Root package has our config.
$root = $this->createMock(RootPackageInterface::class);
$root->expects($this->once())
->method('getExtra')
->willReturn($config);
$message = new Message($root, 'event-name');
$this->assertSame($expected, $message->getText());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.