Files
BarangaySystem/tests/helpers.php
2026-06-06 18:43:00 +08:00

16 lines
350 B
PHP

<?php
declare(strict_types=1);
use Hyperf\Testing\ModelFactory;
use Hypervel\Context\ApplicationContext;
if (! function_exists('factory')) {
function factory(string $class, mixed ...$arguments)
{
return ApplicationContext::getContainer()
->get(ModelFactory::class)
->factory($class, ...$arguments);
}
}