Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 297358

Replace assertions involving calls to isset() with assertArrayHasKey()/assertArrayNotHasKey

$
0
0

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


Viewing all articles
Browse latest Browse all 297358

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>