test: added tests

This commit is contained in:
Jan Klattenhoff 2024-01-18 11:13:56 +01:00
parent 9286839d99
commit b102519154

@ -0,0 +1,20 @@
<?php
namespace App\Service;
use App\Entity\Printer;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Mapping\Entity;
class PrinterService
{
public function __construct(private readonly EntityManagerInterface $entityManager)
{
}
public function deletePrinter(Printer $printer)
{
$this->entityManager->remove($printer);
$this->entityManager->flush();
}
}