Need to resolve this errors for drupal 10 compatibility.
------ -----------------------------------------------------------------------
Line src/Tests/NodeViewCountBaseFunctionalityTest.php
------ -----------------------------------------------------------------------
117 Call to deprecated method assertRaw() of class
Drupal\nodeviewcount\Tests\NodeViewCountBaseFunctionalityTest:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->responseContains() instead.
130 Call to deprecated method assertNoRaw() of class
Drupal\nodeviewcount\Tests\NodeViewCountBaseFunctionalityTest:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->responseNotContains() instead.
156 Call to deprecated method assertRaw() of class
Drupal\nodeviewcount\Tests\NodeViewCountBaseFunctionalityTest:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->responseContains() instead.
175 Call to deprecated method assertNoRaw() of class
Drupal\nodeviewcount\Tests\NodeViewCountBaseFunctionalityTest:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->responseNotContains() instead.
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line src/Tests/NodeViewCountSettingsFormTest.php
------ -----------------------------------------------------------------------
23 Call to deprecated method assertFieldChecked() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->checkboxChecked() instead.
24 Call to deprecated method assertNoFieldChecked() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->checkboxNotChecked() instead.
25 Call to deprecated method assertFieldChecked() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->checkboxChecked() instead.
26 Call to deprecated method assertFieldChecked() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->checkboxChecked() instead.
27 Call to deprecated method assertFieldChecked() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->checkboxChecked() instead.
28 Call to deprecated method assertFieldChecked() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->checkboxChecked() instead.
29 Call to deprecated method assertNoFieldChecked() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->checkboxNotChecked() instead.
33 Call to deprecated method assertNoFieldChecked() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->checkboxNotChecked() instead.
34 Call to deprecated method assertFieldChecked() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->checkboxChecked() instead.
52 Call to deprecated method assertFieldChecked() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.2.0 and is removed from drupal:10.0.0. Use
$this->assertSession()->checkboxChecked() instead.
------ -----------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line src/Tests/NodeViewCountViewsTest.php
------ ---------------------------------------------------------------------
43 Call to deprecated method assertFieldByXPath() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.3.0 and is removed from drupal:10.0.0. Use
$this->xpath() instead and check the values directly in the test.
44 Call to deprecated method assertFieldByXPath() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.3.0 and is removed from drupal:10.0.0. Use
$this->xpath() instead and check the values directly in the test.
59 Call to deprecated method assertFieldByXPath() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.3.0 and is removed from drupal:10.0.0. Use
$this->xpath() instead and check the values directly in the test.
60 Call to deprecated method assertFieldByXPath() of class
Drupal\nodeviewcount\Tests\NodeViewCountTestBase:
in drupal:8.3.0 and is removed from drupal:10.0.0. Use
$this->xpath() instead and check the values directly in the test.
------ ---------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Fix-code-deprecations-3303247-1.patch | 11.55 KB | dharti patel |
Comments
Comment #2
dharti patel commentedResolved all the deprecation issues and create a patch for the same.
Please review this patch.
Thanks!