Files
cacti/tests/Unit/Core/Package/PackageArchiveTest.php
Thomas Vincent 6254b2c17d fix(package): name template archives without export-form fields (#8431)
* fix(packaging): name archives from supplied metadata

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* fix(packaging): make archive leaf-name confinement explicit

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(e2e): move the pointer off the Deepness multiselect button

Deepness sets a zero body margin, so the unhovered #ms-button sits at the viewport origin and headless Chromium on Linux intermittently applies :hover to it.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* ci: pull pinned integration database from authenticated mirror

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-10-23 10:37:58 -06:00

14 lines
605 B
PHP

<?php
declare(strict_types = 1);
// Copyright (C) 2004-2026 The Cacti Group. GPL-2.0-or-later.
use Symfony\Component\Process\Process;
test('package archives use their supplied metadata independently of request fields', function (): void {
$process = new Process([PHP_BINARY, dirname(__DIR__, 3) . '/fixtures/Core/PackageArchive.php']);
$process->setTimeout(30);
$process->run();
expect($process->getExitCode())->toBe(0, $process->getOutput() . $process->getErrorOutput());
expect($process->getOutput())->toBe("PASS: package archive without request fields and with unrelated request fields\n");
});