Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
22
web/core/tests/Drupal/Tests/UnitTestCaseDeprecationTest.php
Normal file
22
web/core/tests/Drupal/Tests/UnitTestCaseDeprecationTest.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\Tests;
|
||||
|
||||
/**
|
||||
* @coversDefaultClass \Drupal\Tests\UnitTestCase
|
||||
*
|
||||
* @group Test
|
||||
* @group legacy
|
||||
*/
|
||||
class UnitTestCaseDeprecationTest extends UnitTestCase {
|
||||
|
||||
/**
|
||||
* @covers ::getBlockMockWithMachineName
|
||||
* @expectedDeprecation Drupal\Tests\UnitTestCase::getBlockMockWithMachineName is deprecated in Drupal 8.5.x, will be removed before Drupal 9.0.0. Unit test base classes should not have dependencies on extensions. Set up mocks in individual tests.
|
||||
*/
|
||||
public function testDeprecatedGetBlockMockWithMachineName() {
|
||||
$block_mock = $this->getBlockMockWithMachineName('test_name');
|
||||
$this->assertEquals('test_name', $block_mock->getPlugin()->getMachineNameSuggestion());
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue