$this->expectDeprecation('UiHelperTrait::drupalPostForm() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use $this->submitForm() instead. See https://www.drupal.org/node/3168858');
$this->expectDeprecation('Calling Drupal\Tests\UiHelperTrait::drupalPostForm() with $submit as an object is deprecated in drupal:9.2.0 and the method is removed in drupal:10.0.0. Use $this->submitForm() instead. See https://www.drupal.org/node/3168858');
$this->expectDeprecation('Calling Drupal\Tests\UiHelperTrait::drupalPostForm() with $edit set to NULL is deprecated in drupal:9.1.0 and the method is removed in drupal:10.0.0. Use $this->submitForm() instead. See https://www.drupal.org/node/3168858');
$this->expectDeprecation('Calling Drupal\Tests\UiHelperTrait::drupalPostForm() with $path set to NULL is deprecated in drupal:9.2.0 and the method is removed in drupal:10.0.0. Use $this->submitForm() instead. See https://www.drupal.org/node/3168858');
$this->drupalPostForm(NULL,[],'Save');
}
/**
* Tests that deprecation headers do not get duplicated.
*
@@ -715,17 +701,6 @@ public function testDeprecationHeaders() {
$this->assertCount(1,$test_deprecation_messages);
}
/**
* Tests legacy drupalGetHeader().
*
* @group legacy
*/
publicfunctiontestDrupalGetHeader(){
$this->expectDeprecation('BrowserTestBase::drupalGetHeader() is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->getResponseHeader() instead. See https://www.drupal.org/node/3168383');
$this->drupalGet('test-page');
$this->drupalGetHeader('Content-Type');
}
/**
* Tests the dump() function provided by the var-dumper Symfony component.
@trigger_error('Installing the tables key_value and key_value_expire with the method KernelTestBase::installSchema() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. The tables are now lazy loaded and therefore will be installed automatically when used. See https://www.drupal.org/node/3143286',E_USER_DEPRECATED);
continue;
}
if(empty($specification[$table])){
thrownew\LogicException("$module module does not define a schema for table '$table'.");
@@ -339,18 +339,6 @@ public function testProfileModules() {
);
}
/**
* Tests the deprecation of ::installSchema with the tables key_value(_expire).
*
* @group legacy
*/
publicfunctiontestKernelTestBaseInstallSchema(){
$this->expectDeprecation('Installing the tables key_value and key_value_expire with the method KernelTestBase::installSchema() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. The tables are now lazy loaded and therefore will be installed automatically when used. See https://www.drupal.org/node/3143286');
@trigger_error(__NAMESPACE__.'\AssertHelperTrait is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no replacement. See https://www.drupal.org/node/3123638',E_USER_DEPRECATED);
/**
* Provides helper methods for assertions.
*
* @deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3123638
*/
traitAssertHelperTrait{
/**
* Casts MarkupInterface objects into strings.
*
* @param string|array $value
* The value to act on.
*
* @return mixed
* The input value, with MarkupInterface objects casted to string.
*
* @deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no
* replacement, just use assertEquals in tests.
*
* @see https://www.drupal.org/node/3123638
*/
protectedstaticfunctioncastSafeStrings($value){
@trigger_error('AssertHelperTrait::castSafeStrings() is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no replacement; assertEquals() will automatically cast MarkupInterface to strings when needed. See https://www.drupal.org/node/3123638',E_USER_DEPRECATED);