@trigger_error('The '.__METHOD__.' method is deprecated since version 8.1.0 and will be removed in 9.0.0. Use \Behat\Mink\Element\NodeElement::isVisible() instead.',E_USER_DEPRECATED);
}
/**
* Asserts that the element with the given CSS selector is not visible.
*
* @param string $css_selector
* The CSS selector identifying the element to check.
* @param string $message
* Optional message to show alongside the assertion.
*
* @deprecated in drupal:8.1.0 and is removed from drupal:9.0.0. Use
@trigger_error('The '.__METHOD__.' method is deprecated since version 8.1.0 and will be removed in 9.0.0. Use \Behat\Mink\Element\NodeElement::isVisible() instead.',E_USER_DEPRECATED);
}
/**
* Waits for the given time or until the given JS condition becomes TRUE.
* @expectedDeprecation Drupal\Tests\BrowserTestBase::drupalGetHeaders() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use $this->getSession()->getResponseHeaders() instead. See https://www.drupal.org/node/3067207
@@ -709,11 +707,6 @@ protected function installSchema($module, $tables) {
foreach($tablesas$table){
$schema=drupal_get_module_schema($module,$table);
if(empty($schema)){
// BC layer to avoid some contrib tests to fail.
if($module=='system'){
@trigger_error('Special handling of system module schemas in \Drupal\KernelTests\KernelTestBase::installSchema has been deprecated in Drupal 8.7.x, remove any calls to this method that use invalid schema names. See https://www.drupal.org/node/3003360.',E_USER_DEPRECATED);
continue;
}
thrownew\LogicException("$module module does not define a schema for table '$table'.");
trigger_error('KernelTestBase::enableModules() should not be called from setUp(). Use the $modules property instead.',E_USER_DEPRECATED);
}
unset($trace);
// Perform an ExtensionDiscovery scan as this function may receive a
// profile that is not the current profile, and we don't yet have a cached
// way to receive inactive profile information.
...
...
@@ -913,10 +900,6 @@ protected function render(array &$elements) {
* \Drupal\Core\Site\Settings::get() to perform custom merges.
*/
protectedfunctionsetSetting($name,$value){
if($name==='install_profile'){
@trigger_error('Use \Drupal\KernelTests\KernelTestBase::setInstallProfile() to set the install profile in kernel tests. See https://www.drupal.org/node/2538996',E_USER_DEPRECATED);
* @deprecated in drupal:8.4.0 and is removed from drupal:9.0.0.
* KernelTestBase tests are always run in isolated processes.
*/
protectedfunctionisTestInIsolation(){
@trigger_error(__CLASS__.'::'.__FUNCTION__.'() is deprecated in Drupal 8.4.x, for removal before the Drupal 9.0.0 release. KernelTestBase tests are always run in isolated processes.',E_USER_DEPRECATED);
* BC: Automatically resolve former KernelTestBase class properties.
*
* Test authors should follow the provided instructions and adjust their tests
* accordingly.
*
* @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0.
*/
publicfunction__get($name){
if(in_array($name,[
'public_files_directory',
'private_files_directory',
'temp_files_directory',
'translation_files_directory',
])){
// @comment it in again.
trigger_error(sprintf("KernelTestBase::\$%s no longer exists. Use the regular API method to retrieve it instead (e.g., Settings).",$name),E_USER_DEPRECATED);
@trigger_error('Passing a File entity as $file argument to FileFieldTestBase::assertFileExists is deprecated in drupal:8.8.0. It will be removed from drupal:9.0.0. Instead, pass the File entity URI via File::getFileUri(). See https://www.drupal.org/node/3057326',E_USER_DEPRECATED);
$file=$file->getFileUri();
}
$message=isset($message)?$message:newFormattableMarkup('File %file exists on the disk.',['%file'=>$file]);
parent::assertFileExists($file,$message);
}
/**
* Asserts that a file does not exist on disk.
*
* Overrides PHPUnit\Framework\Assert::assertFileNotExists() to also work
* with file entities.
*
* @param \Drupal\File\FileInterface|string $file
* Either the file entity or the file URI.
* @param string $message
* (optional) A message to display with the assertion.
@trigger_error('Passing a File entity as $file argument to FileFieldTestBase::assertFileNotExists is deprecated in drupal:8.8.0. It will be removed from drupal:9.0.0. Instead, pass the File entity URI via File::getFileUri(). See https://www.drupal.org/node/3057326',E_USER_DEPRECATED);
$file=$file->getFileUri();
}
$message=isset($message)?$message:newFormattableMarkup('File %file exists on the disk.',['%file'=>$file]);
@trigger_error('Support for asserting against non-boolean values in ::assertTrue is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use a different assert method, for example, ::assertNotEmpty(). See https://www.drupal.org/node/3082086',E_USER_DEPRECATED);
@trigger_error('Support for asserting against non-boolean values in ::assertFalse is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use a different assert method, for example, ::assertEmpty(). See https://www.drupal.org/node/3082086',E_USER_DEPRECATED);
@trigger_error('Support for asserting against non-boolean values in ::assertTrue is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use a different assert method, for example, ::assertNotEmpty(). See https://www.drupal.org/node/3082086',E_USER_DEPRECATED);
@trigger_error('Support for asserting against non-boolean values in ::assertFalse is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use a different assert method, for example, ::assertEmpty(). See https://www.drupal.org/node/3082086',E_USER_DEPRECATED);
* @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0.
* Use $this->getSession()->getResponseHeaders() instead.
*
* @see https://www.drupal.org/node/3067207
*/
protectedfunctiondrupalGetHeaders(){
@trigger_error('Drupal\Tests\BrowserTestBase::drupalGetHeaders() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use $this->getSession()->getResponseHeaders() instead. See https://www.drupal.org/node/3067207',E_USER_DEPRECATED);
* @expectedDeprecation Support for asserting against non-boolean values in ::assertTrue is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use a different assert method, for example, ::assertNotEmpty(). See https://www.drupal.org/node/3082086
*/
publicfunctiontestAssertTrue(){
$this->assertTrue(1);
}
/**
* @expectedDeprecation Support for asserting against non-boolean values in ::assertFalse is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use a different assert method, for example, ::assertEmpty(). See https://www.drupal.org/node/3082086
* @expectedDeprecation Drupal\KernelTests\KernelTestBase::isTestInIsolation() is deprecated in Drupal 8.4.x, for removal before the Drupal 9.0.0 release. KernelTestBase tests are always run in isolated processes.
@trigger_error('\Drupal\Tests\PhpunitCompatibilityTrait::getMock() is deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead. See https://www.drupal.org/node/2907725',E_USER_DEPRECATED);