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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | rules-replace-isset-top-assertArrayHasKey-3136850-2.patch | 1.52 KB | andrewsizz |
Comments
Comment #2
andrewsizz commentedComment #3
andrewsizz commentedComment #4
tr commentedCan you please combine your five issues into just one issue and explain *why* these asserts need to be changed?
Comment #5
tr commentedThere are currently no assertions involving calls to isset() in the Rules codebase.
Comment #6
tr commentedActually, #5 wasn't true. There are two left, which are the same as in the patch.
Comment #8
tr commentedCommitted #2.