Tests Drupal\Core\Cache\CacheBackendInterface::isEmpty().
public function testIsEmpty() {
$backend = $this
->getCacheBackend();
$this
->assertTrue($backend
->isEmpty(), "Backend is empty.");
$backend
->set('pony', "Shetland");
$this
->assertFalse($backend
->isEmpty(), "Backend is not empty.");
$backend
->delete('pony');
$this
->assertTrue($backend
->isEmpty(), "Backend is empty.");
}