Commit b06f7b97 authored by anmolgoyal74's avatar anmolgoyal74 Committed by Berdir
Browse files

Issue #2858234 by anmolgoyal74, pifagor, shubham.prakash: Remove...

Issue #2858234 by anmolgoyal74, pifagor, shubham.prakash: Remove assertIdentical methods in favour of assertSame
parent dfdc1f7a
......@@ -201,7 +201,7 @@ class PathautoNodeWebTest extends BrowserTestBase {
// Ensure that the pathauto field was saved to the database.
\Drupal::entityTypeManager()->getStorage('node')->resetCache();
$node = Node::load($node->id());
$this->assertIdentical($node->path->pathauto, PathautoState::SKIP);
$this->assertSame(PathautoState::SKIP, $node->path->pathauto);
// Ensure that the manual path alias was saved and an automatic alias was not generated.
$this->assertEntityAlias($node, '/test-alias');
......@@ -248,7 +248,7 @@ class PathautoNodeWebTest extends BrowserTestBase {
// Ensure that the pathauto field was saved to the database.
\Drupal::entityTypeManager()->getStorage('node')->resetCache();
$node = Node::load($node->id());
$this->assertIdentical($node->path->pathauto, PathautoState::CREATE);
$this->assertSame(PathautoState::CREATE, $node->path->pathauto);
$this->assertEntityAlias($node, '/content/node-version-three');
$this->assertNoEntityAliasExists($node, '/manually-edited-alias');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment