mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-26 01:10:30 -04:00
test(dns): sort cached Cloudflare zone names before asserting
This commit is contained in:
@@ -35,7 +35,7 @@ test('cloudflare zones are discovered and cached for a token', function () {
|
||||
|
||||
app(CloudflareDnsProvider::class)->syncZones($token);
|
||||
|
||||
expect($token->dnsZones()->pluck('name')->all())->toBe(['example.com', 'example.org'])
|
||||
expect($token->dnsZones()->orderBy('name')->pluck('name')->all())->toBe(['example.com', 'example.org'])
|
||||
->and($token->fresh()->metadata['zones_synced_at'])->not->toBeNull();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user