Fixed inspection issues

This commit is contained in:
Jan Böhmer 2023-04-15 21:49:19 +02:00
parent 5f29ee9052
commit de96aae9a5
36 changed files with 55 additions and 53 deletions

View file

@ -56,7 +56,7 @@ final class BarcodeGeneratorTest extends WebTestCase
protected function setUp(): void
{
self::bootKernel();
$this->services = self::$container->get(BarcodeGenerator::class);
$this->services = self::getContainer()->get(BarcodeGenerator::class);
}
public function testGetContent(): void

View file

@ -61,7 +61,7 @@ class PartLotProviderTest extends WebTestCase
{
self::bootKernel();
\Locale::setDefault('en');
$this->service = self::$container->get(PartLotProvider::class);
$this->service = self::getContainer()->get(PartLotProvider::class);
$this->target = new PartLot();
$this->target->setDescription('Lot description');
$this->target->setComment('Lot comment');

View file

@ -59,7 +59,7 @@ class SandboxedTwigProviderTest extends WebTestCase
protected function setUp(): void
{
self::bootKernel();
$this->service = self::$container->get(SandboxedTwigProvider::class);
$this->service = self::getContainer()->get(SandboxedTwigProvider::class);
}
public function twigDataProvider(): array

View file

@ -53,7 +53,7 @@ class PermissionSchemaUpdaterTest extends WebTestCase
parent::setUp();
self::bootKernel();
$this->service = self::$container->get(PermissionSchemaUpdater::class);
$this->service = self::getContainer()->get(PermissionSchemaUpdater::class);
}
public function testIsSchemaUpdateNeeded(): void