mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed various issues inside the tests
This commit is contained in:
parent
7c03630e24
commit
79ab1a2277
4 changed files with 6 additions and 7 deletions
|
@ -26,7 +26,7 @@ use App\Entity\UserSystem\User;
|
|||
use App\Entity\UserSystem\WebauthnKey;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Ramsey\Uuid\Uuid;
|
||||
use Symfony\Component\Uid\Uuid;
|
||||
use Webauthn\TrustPath\EmptyTrustPath;
|
||||
|
||||
class UserTest extends TestCase
|
||||
|
@ -133,7 +133,7 @@ class UserTest extends TestCase
|
|||
[],
|
||||
"Test",
|
||||
new EmptyTrustPath(),
|
||||
Uuid::fromDateTime(new \DateTime()),
|
||||
Uuid::v4(),
|
||||
"",
|
||||
"",
|
||||
0
|
||||
|
|
|
@ -27,7 +27,7 @@ use App\Entity\UserSystem\User;
|
|||
use App\Entity\UserSystem\WebauthnKey;
|
||||
use App\EventSubscriber\UserSystem\PasswordChangeNeededSubscriber;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Ramsey\Uuid\Uuid;
|
||||
use Symfony\Component\Uid\Uuid;
|
||||
use Webauthn\TrustPath\EmptyTrustPath;
|
||||
|
||||
class PasswordChangeNeededSubscriberTest extends TestCase
|
||||
|
@ -61,7 +61,7 @@ class PasswordChangeNeededSubscriberTest extends TestCase
|
|||
[],
|
||||
"Test",
|
||||
new EmptyTrustPath(),
|
||||
Uuid::fromDateTime(new \DateTime()),
|
||||
Uuid::v4(),
|
||||
"",
|
||||
"",
|
||||
0
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace App\Tests\Security;
|
|||
|
||||
use App\Entity\UserSystem\User;
|
||||
use App\Security\EnsureSAMLUserForSAMLLoginChecker;
|
||||
use Hslavich\OneloginSamlBundle\Security\Http\Authenticator\Token\SamlToken;
|
||||
use Nbgrp\OneloginSamlBundle\Security\Http\Authenticator\Token\SamlToken;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
||||
use Symfony\Component\Security\Core\Event\AuthenticationSuccessEvent;
|
||||
|
|
|
@ -44,8 +44,7 @@ class ElementTypeNameGeneratorTest extends WebTestCase
|
|||
parent::setUp();
|
||||
|
||||
//Get an service instance.
|
||||
self::bootKernel();
|
||||
$this->service = self::$container->get(ElementTypeNameGenerator::class);
|
||||
$this->service = self::getContainer()->get(ElementTypeNameGenerator::class);
|
||||
}
|
||||
|
||||
public function testGetLocalizedTypeNameCombination(): void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue