Issue #3137455 by sja112, mondrake, longwave: AssertLegacyTrait - change links in @trigger_error deprecations to point the relevant change record
(cherry picked from commit e0c17813f8
)
merge-requests/64/head
parent
7890008127
commit
75b35f0654
|
@ -697,10 +697,10 @@ trait AssertLegacyTrait {
|
|||
* Deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use
|
||||
* $this->assertSession()->responseNotMatches() instead.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2864262
|
||||
* @see https://www.drupal.org/node/3129738
|
||||
*/
|
||||
protected function assertNoPattern($pattern) {
|
||||
@trigger_error('AssertLegacyTrait::assertNoPattern() is deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseNotMatches() instead. See https://www.drupal.org/node/2864262', E_USER_DEPRECATED);
|
||||
@trigger_error('AssertLegacyTrait::assertNoPattern() is deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseNotMatches() instead. See https://www.drupal.org/node/3129738', E_USER_DEPRECATED);
|
||||
$this->assertSession()->responseNotMatches($pattern);
|
||||
}
|
||||
|
||||
|
@ -726,10 +726,10 @@ trait AssertLegacyTrait {
|
|||
* Deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use
|
||||
* $this->assertSession()->responseHeaderNotContains() instead.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2864029
|
||||
* @see https://www.drupal.org/node/3129738
|
||||
*/
|
||||
protected function assertNoCacheTag($cache_tag) {
|
||||
@trigger_error('AssertLegacyTrait::assertNoCacheTag() is deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseHeaderNotContains() instead. See https://www.drupal.org/node/2864029', E_USER_DEPRECATED);
|
||||
@trigger_error('AssertLegacyTrait::assertNoCacheTag() is deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseHeaderNotContains() instead. See https://www.drupal.org/node/3129738', E_USER_DEPRECATED);
|
||||
$this->assertSession()->responseHeaderNotContains('X-Drupal-Cache-Tags', $cache_tag);
|
||||
}
|
||||
|
||||
|
@ -811,10 +811,10 @@ trait AssertLegacyTrait {
|
|||
* Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use
|
||||
* $this->getSession()->getPage()->getContent() instead.
|
||||
*
|
||||
* @see http://drupal.org/node/2735045
|
||||
* @see https://www.drupal.org/node/3129738
|
||||
*/
|
||||
protected function getRawContent() {
|
||||
@trigger_error('AssertLegacyTrait::getRawContent() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->getPage()->getContent() instead. See http://drupal.org/node/2735045', E_USER_DEPRECATED);
|
||||
@trigger_error('AssertLegacyTrait::getRawContent() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->getPage()->getContent() instead. See https://www.drupal.org/node/3129738', E_USER_DEPRECATED);
|
||||
return $this->getSession()->getPage()->getContent();
|
||||
}
|
||||
|
||||
|
@ -830,10 +830,10 @@ trait AssertLegacyTrait {
|
|||
* Deprecated in drupal:8.5.0 and is removed from drupal:10.0.0. Use
|
||||
* $element->findAll('xpath', 'option') instead.
|
||||
*
|
||||
* @see http://drupal.org/node/2735045
|
||||
* @see https://www.drupal.org/node/3129738
|
||||
*/
|
||||
protected function getAllOptions(NodeElement $element) {
|
||||
@trigger_error('AssertLegacyTrait::getAllOptions() is deprecated in drupal:8.5.0 and is removed from drupal:10.0.0. Use $element->findAll(\'xpath\', \'option\') instead. See http://drupal.org/node/2735045', E_USER_DEPRECATED);
|
||||
@trigger_error('AssertLegacyTrait::getAllOptions() is deprecated in drupal:8.5.0 and is removed from drupal:10.0.0. Use $element->findAll(\'xpath\', \'option\') instead. See https://www.drupal.org/node/3129738', E_USER_DEPRECATED);
|
||||
return $element->findAll('xpath', '//option');
|
||||
}
|
||||
|
||||
|
|
|
@ -253,7 +253,7 @@ class BrowserTestBaseTest extends BrowserTestBase {
|
|||
* Tests legacy getRawContent().
|
||||
*
|
||||
* @group legacy
|
||||
* @expectedDeprecation AssertLegacyTrait::getRawContent() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->getPage()->getContent() instead. See http://drupal.org/node/2735045
|
||||
* @expectedDeprecation AssertLegacyTrait::getRawContent() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->getPage()->getContent() instead. See https://www.drupal.org/node/3129738
|
||||
*/
|
||||
public function testGetRawContent() {
|
||||
$this->drupalGet('test-encoded');
|
||||
|
|
|
@ -22,7 +22,7 @@ class AssertLegacyTraitDeprecatedTest extends BrowserTestBase {
|
|||
/**
|
||||
* Tests getAllOptions().
|
||||
*
|
||||
* @expectedDeprecation AssertLegacyTrait::getAllOptions() is deprecated in drupal:8.5.0 and is removed from drupal:10.0.0. Use $element->findAll('xpath', 'option') instead. See http://drupal.org/node/2735045
|
||||
* @expectedDeprecation AssertLegacyTrait::getAllOptions() is deprecated in drupal:8.5.0 and is removed from drupal:10.0.0. Use $element->findAll('xpath', 'option') instead. See https://www.drupal.org/node/3129738
|
||||
*/
|
||||
public function testGetAllOptions() {
|
||||
$this->drupalGet('/form-test/select');
|
||||
|
|
|
@ -156,7 +156,7 @@ class AssertLegacyTraitTest extends UnitTestCase {
|
|||
|
||||
/**
|
||||
* @covers ::assertNoPattern
|
||||
* @expectedDeprecation AssertLegacyTrait::assertNoPattern() is deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseNotMatches() instead. See https://www.drupal.org/node/2864262
|
||||
* @expectedDeprecation AssertLegacyTrait::assertNoPattern() is deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseNotMatches() instead. See https://www.drupal.org/node/3129738
|
||||
*/
|
||||
public function testAssertNoPattern() {
|
||||
$this->webAssert
|
||||
|
@ -168,7 +168,7 @@ class AssertLegacyTraitTest extends UnitTestCase {
|
|||
|
||||
/**
|
||||
* @covers ::assertNoCacheTag
|
||||
* @expectedDeprecation AssertLegacyTrait::assertNoCacheTag() is deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseHeaderNotContains() instead. See https://www.drupal.org/node/2864029
|
||||
* @expectedDeprecation AssertLegacyTrait::assertNoCacheTag() is deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseHeaderNotContains() instead. See https://www.drupal.org/node/3129738
|
||||
*/
|
||||
public function testAssertNoCacheTag() {
|
||||
$this->webAssert
|
||||
|
|
Loading…
Reference in New Issue