Renamed SandboxedTwigProvider to SandboxedTwig Factory

This commit is contained in:
Jan Böhmer 2024-03-06 20:08:35 +01:00
parent a2cd5652d2
commit 1da3225e1d
3 changed files with 8 additions and 7 deletions

View file

@ -47,18 +47,18 @@ use App\Entity\LabelSystem\LabelSupportedElement;
use App\Entity\Parts\Part;
use App\Entity\Parts\PartLot;
use App\Entity\Parts\StorageLocation;
use App\Services\LabelSystem\SandboxedTwigProvider;
use App\Services\LabelSystem\SandboxedTwigFactory;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Twig\Sandbox\SecurityError;
class SandboxedTwigProviderTest extends WebTestCase
class SandboxedTwigFactoryTest extends WebTestCase
{
private ?object $service = null;
protected function setUp(): void
{
self::bootKernel();
$this->service = self::getContainer()->get(SandboxedTwigProvider::class);
$this->service = self::getContainer()->get(SandboxedTwigFactory::class);
}
public function twigDataProvider(): array