Problem/Motivation
Fox example:
- $this->assertFalse(in_array('t3', $cids), "Existing key 3 has been removed from &\$cids");
- $this->assertTrue(in_array('t4', $cids), "Non existing key 4 is still in &\$cids");
+ $this->assertNotContains('t3', $cids);
+ $this->assertContains('t4', $cids);
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | entity_usage_replace_in_array-with-assertContains-3155641.patch | 825 bytes | gena.io |
Comments
Comment #2
gena.io commentedComment #3
gena.io commentedComment #4
smustgrave commentedlooks good to me
Comment #6
alexpottI think this could be further improved because the assert is really odd. But so be it.