Problem/Motivation

As title

Proposed resolution

Remove redundant assertion messages at the same time.

Example:

-    $this->assertTrue(isset($ids['entity_test.entity_test.field_test_import']));
+    $this->assertArrayHasKey('entity_test.entity_test.field_test_import', $ids);

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

gena.io created an issue. See original summary.

gena.io’s picture

gena.io’s picture

Status: Active » Needs review
Pooja Ganjage’s picture

Hii,

Above patch is working fine.

But I change one more function which is deprecated as assetNoText(), and instead of that use pageTextNotContains() method.

Before it was like $this->assertNoText($field_content);
But when I change it such as $this->assertSession()->pageTextNotContains($field_content);

Above code included in tests/src/Kernel/ViewsFieldAccessTest.php.

Please let me know is it correct or not.

gena.io’s picture

Hi, I think that it's a scope of a new issue

Pooja Ganjage’s picture

paulocs’s picture

Status: Needs review » Reviewed & tested by the community

Patch #2 looks good.

japerry’s picture

Status: Reviewed & tested by the community » Fixed

  • japerry committed 93bb955 on 8.x-1.x authored by gena.io
    Issue #3154466 by gena.io: Replace assertions involving calls to isset...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.