Mercurial > hg > isophonics-drupal-site
view core/tests/Drupal/Tests/UnitTestCaseDeprecationTest.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 1fec387a4317 |
children |
line wrap: on
line source
<?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()); } }