Issue #3432863 by obsidian_, mstrelan, DanielVeza: Remove deprecated code from core/tests/fixtures
parent
192c0f5dea
commit
dfa0168120
|
@ -1,42 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Drupal\FunctionalTests;
|
|
||||||
|
|
||||||
use Drupal\Tests\BrowserTestBase;
|
|
||||||
|
|
||||||
@trigger_error('\\Drupal\\FunctionalTests\\BrowserMissingDependentModuleMethodTest is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3418480', E_USER_DEPRECATED);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A fixture test class with requires annotation.
|
|
||||||
*
|
|
||||||
* This is a fixture class for
|
|
||||||
* \Drupal\FunctionalTests\BrowserTestBaseTest::testMethodRequiresModule().
|
|
||||||
*
|
|
||||||
* This test class should not be discovered by run-tests.sh, phpstan or phpunit.
|
|
||||||
*
|
|
||||||
* @group fixture
|
|
||||||
*
|
|
||||||
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no
|
|
||||||
* replacement.
|
|
||||||
*
|
|
||||||
* @see https://www.drupal.org/node/3418480
|
|
||||||
*/
|
|
||||||
class BrowserMissingDependentModuleMethodTest extends BrowserTestBase {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method should be skipped since it requires a module that is not found.
|
|
||||||
*
|
|
||||||
* @requires module module_does_not_exist
|
|
||||||
*/
|
|
||||||
public function testRequiresModule() {
|
|
||||||
$this->fail('Running test with missing required module.');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Public access for checkRequirements() to avoid reflection.
|
|
||||||
*/
|
|
||||||
public function publicCheckRequirements() {
|
|
||||||
return parent::checkRequirements();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Drupal\FunctionalTests;
|
|
||||||
|
|
||||||
use Drupal\Tests\BrowserTestBase;
|
|
||||||
|
|
||||||
@trigger_error('\\Drupal\\FunctionalTests\\BrowserMissingDependentModuleTest is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3418480', E_USER_DEPRECATED);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A fixture test class with requires annotation.
|
|
||||||
*
|
|
||||||
* This is a fixture class for
|
|
||||||
* \Drupal\FunctionalTests\BrowserTestBaseTest::testRequiresModule().
|
|
||||||
*
|
|
||||||
* This test class should not be discovered by run-tests.sh, phpstan or phpunit.
|
|
||||||
*
|
|
||||||
* @requires module module_does_not_exist
|
|
||||||
* @group fixture
|
|
||||||
*
|
|
||||||
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no
|
|
||||||
* replacement.
|
|
||||||
*
|
|
||||||
* @see https://www.drupal.org/node/3418480
|
|
||||||
*/
|
|
||||||
class BrowserMissingDependentModuleTest extends BrowserTestBase {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Placeholder test method.
|
|
||||||
*
|
|
||||||
* Depending on configuration, PHPUnit might fail a test if it has no test
|
|
||||||
* methods, so we must provide one. This method should never be executed.
|
|
||||||
*/
|
|
||||||
public function testRequiresModule() {
|
|
||||||
$this->fail('Running test with missing required module.');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Public access for checkRequirements() to avoid reflection.
|
|
||||||
*/
|
|
||||||
public function publicCheckRequirements() {
|
|
||||||
return parent::checkRequirements();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Drupal\KernelTests;
|
|
||||||
|
|
||||||
@trigger_error('\\Drupal\\FunctionalTests\\KernelMissingDependentModuleMethodTest is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3418480', E_USER_DEPRECATED);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A fixture test class with requires annotation.
|
|
||||||
*
|
|
||||||
* This is a fixture class for
|
|
||||||
* \Drupal\KernelTests\KernelTestBaseTest::testRequiresModule().
|
|
||||||
*
|
|
||||||
* This test class should not be discovered by run-tests.sh, phpstan or phpunit.
|
|
||||||
*
|
|
||||||
* @group fixture
|
|
||||||
*
|
|
||||||
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no
|
|
||||||
* replacement.
|
|
||||||
*
|
|
||||||
* @see https://www.drupal.org/node/3418480
|
|
||||||
*/
|
|
||||||
class KernelMissingDependentModuleMethodTest extends KernelTestBase {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method should be skipped since it requires a module that is not found.
|
|
||||||
*
|
|
||||||
* @requires module module_does_not_exist
|
|
||||||
*/
|
|
||||||
public function testRequiresModule() {
|
|
||||||
$this->fail('Running test with missing required module.');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Public access for checkRequirements() to avoid reflection.
|
|
||||||
*/
|
|
||||||
public function publicCheckRequirements() {
|
|
||||||
return parent::checkRequirements();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,42 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Drupal\KernelTests;
|
|
||||||
|
|
||||||
@trigger_error('\\Drupal\\FunctionalTests\\KernelMissingDependentModuleTest is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3418480', E_USER_DEPRECATED);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A fixture test class with requires annotation.
|
|
||||||
*
|
|
||||||
* This is a fixture class for
|
|
||||||
* \Drupal\KernelTests\KernelTestBaseTest::testRequiresModule().
|
|
||||||
*
|
|
||||||
* This test class should not be discovered by run-tests.sh, phpstan or phpunit.
|
|
||||||
*
|
|
||||||
* @requires module module_does_not_exist
|
|
||||||
* @group fixture
|
|
||||||
*
|
|
||||||
* @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no
|
|
||||||
* replacement.
|
|
||||||
*
|
|
||||||
* @see https://www.drupal.org/node/3418480
|
|
||||||
*/
|
|
||||||
class KernelMissingDependentModuleTest extends KernelTestBase {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Placeholder test method.
|
|
||||||
*
|
|
||||||
* Depending on configuration, PHPUnit might fail a test if it has no test
|
|
||||||
* methods, so we must provide one. This method should never be executed.
|
|
||||||
*/
|
|
||||||
public function testRequiresModule() {
|
|
||||||
$this->fail('Running test with missing required module.');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Public access for checkRequirements() to avoid reflection.
|
|
||||||
*/
|
|
||||||
public function publicCheckRequirements() {
|
|
||||||
return parent::checkRequirements();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -76,14 +76,6 @@ class Connection extends CoreConnection {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function nextId($existing_id = 0) {
|
|
||||||
@trigger_error('Drupal\Core\Database\Connection::nextId() is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Modules should use instead the keyvalue storage for the last used id. See https://www.drupal.org/node/3349345', E_USER_DEPRECATED);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue