public function DeployLogDeprecatedTest::testDeprecatedMethod in Build Hooks 8.2
Same name and namespace in other branches
- 3.x tests/src/Kernel/DeployLogDeprecatedTest.php \Drupal\Tests\build_hooks\Kernel\DeployLogDeprecatedTest::testDeprecatedMethod()
Tests removed method.
@expectedDeprecation Drupal\build_hooks\DeployLogger::getLogItemsSinceTimestamp is deprecated in build_hooks:8.x-2.4 and is removed from build_hooks:8.x-3.0. There is no replacement, instead work with the deployment content entity. See https://www.drupal.org/node/3172327
File
- tests/
src/ Kernel/ DeployLogDeprecatedTest.php, line 18
Class
- DeployLogDeprecatedTest
- Defines a class for testing deploy log deprecations.
Namespace
Drupal\Tests\build_hooks\KernelCode
public function testDeprecatedMethod() {
$logger = \Drupal::service('build_hooks.deploylogger');
$logger
->getLogItemsSinceTimestamp(0);
}