Skip to content
Snippets Groups Projects
Unverified Commit beebdc03 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3171920 by anmolgoyal74: Deprecation warning is not correct

parent 69cf8ca9
No related branches found
No related tags found
No related merge requests found
......@@ -398,7 +398,7 @@ protected function assertRaw($raw) {
protected function assertNoRaw($raw) {
@trigger_error('AssertLegacyTrait::assertNoRaw() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseNotContains() instead. See https://www.drupal.org/node/3129738', E_USER_DEPRECATED);
if (func_num_args() > 1) {
@trigger_error('Calling AssertLegacyTrait::assertNoRaw() with more that one argument is deprecated in drupal:8.2.0 and the method is removed from drupal:10.0.0. Use $this->assertSession()->responseContains() instead. See https://www.drupal.org/node/3129738', E_USER_DEPRECATED);
@trigger_error('Calling AssertLegacyTrait::assertNoRaw() with more that one argument is deprecated in drupal:8.2.0 and the method is removed from drupal:10.0.0. Use $this->assertSession()->responseNotContains() instead. See https://www.drupal.org/node/3129738', E_USER_DEPRECATED);
}
$this->assertSession()->responseNotContains($raw);
}
......
......@@ -74,7 +74,7 @@ public function testAssertRaw() {
/**
* @covers ::assertNoRaw
* @expectedDeprecation Calling AssertLegacyTrait::assertNoRaw() with more that one argument is deprecated in drupal:8.2.0 and the method is removed from drupal:10.0.0. Use $this->assertSession()->responseContains() instead. See https://www.drupal.org/node/3129738
* @expectedDeprecation Calling AssertLegacyTrait::assertNoRaw() with more that one argument is deprecated in drupal:8.2.0 and the method is removed from drupal:10.0.0. Use $this->assertSession()->responseNotContains() instead. See https://www.drupal.org/node/3129738
*/
public function testAssertNoRaw() {
$this->page->getText()->willReturn('foo bar bar');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment