mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
16 lines
551 B
PHP
16 lines
551 B
PHP
<?php
|
|
|
|
test('format_docker_labels_to_json preserves equals in values', function () {
|
|
$rawLabels = 'coolify.config=foo=bar,com.docker.compose.project=coolify';
|
|
|
|
$labels = format_docker_labels_to_json($rawLabels);
|
|
|
|
expect($labels->get('coolify.config'))->toBe('foo=bar')
|
|
->and($labels->get('com.docker.compose.project'))->toBe('coolify');
|
|
});
|
|
|
|
test('format_docker_labels_to_json returns empty collection for empty input', function () {
|
|
$labels = format_docker_labels_to_json('');
|
|
|
|
expect($labels->isEmpty())->toBeTrue();
|
|
});
|