Skip to content
Snippets Groups Projects

Issue #3131348: Replace assertions involving calls to empty() with assertEmpty()/assertNotEmpty()/assertArrayNotHasKey()

Closed Issue #3131348: Replace assertions involving calls to empty() with assertEmpty()/assertNotEmpty()/assertArrayNotHasKey()
All threads resolved!
Closed spokje requested to merge issue/drupal-3131348:3131348-replace-assertions-involving into 9.4.x
All threads resolved!
Files
105
@@ -34,7 +34,7 @@ public function testfetch() {
// Create feed with local url.
$feed = $this->createFeed();
$this->updateFeedItems($feed);
$this->assertFalse(empty($feed->items));
$this->assertNotEmpty($feed->items);
// Delete items and restore checked property to 0.
$this->deleteFeedItems($feed);
@@ -43,7 +43,7 @@ public function testfetch() {
$feed->save();
$this->updateFeedItems($feed);
// Fetch should fail due to feed name.
$this->assertTrue(empty($feed->items));
$this->assertEmpty($feed->items);
}
}
Loading