class TrackerLegacyTest
@group tracker @group legacy
Hierarchy
- class \Drupal\KernelTests\KernelTestBase implements \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\AssertHelperTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\PhpunitCompatibilityTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\tracker\Kernel\TrackerLegacyTest extends \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of TrackerLegacyTest
File
-
core/
modules/ tracker/ tests/ src/ Kernel/ TrackerLegacyTest.php, line 11
Namespace
Drupal\Tests\tracker\KernelView source
class TrackerLegacyTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
'comment',
'tracker',
'history',
'node',
'node_test',
'user',
];
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this->installEntitySchema('node');
$this->installSchema('node', 'node_access');
$this->installSchema('tracker', 'tracker_node');
$this->installSchema('tracker', 'tracker_user');
}
/**
* @expectedDeprecation tracker_page is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\tracker\Controller\TrackerController::buildContent() instead. See https://www.drupal.org/node/3030645
*/
public function testDeprecatedTrackerPage() {
module_load_include('inc', 'tracker', 'tracker.pages');
$this->assertNotEmpty(tracker_page());
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| TrackerLegacyTest::$modules | public static | property | |
| TrackerLegacyTest::setUp | protected | function | |
| TrackerLegacyTest::testDeprecatedTrackerPage | public | function | @expectedDeprecation tracker_page is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\tracker\Controller\TrackerController::buildContent() instead. See https://www.drupal.org/node/3030645 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.