diff --git a/Tests/Entity/SpidUserProviderTest.php b/Tests/Entity/SpidUserProviderTest.php deleted file mode 100644 index 4c5f319..0000000 --- a/Tests/Entity/SpidUserProviderTest.php +++ /dev/null @@ -1,35 +0,0 @@ -markTestIncomplete('WIP'); - $mockLogger = $this->getMockBuilder(LoggerInterface::class)->disableOriginalConstructor()->getMock(); - $mockLogger->expects($this->exactly(1)) - ->method('info') - ->with(LogConstants::SPID_USER_CREATED); - - $mockUser = $this->getMockBuilder(UserInterface::class)->disableOriginalConstructor()->getMock(); - - $this->userProvider = new SpidUserProvider($mockLogger); - - $user = $this->userProvider->refreshUser($mockUser); - } - -} diff --git a/Tests/Security/SpidAuthenticatorTest.php b/Tests/Security/SpidAuthenticatorTest.php index dd43eec..c441335 100644 --- a/Tests/Security/SpidAuthenticatorTest.php +++ b/Tests/Security/SpidAuthenticatorTest.php @@ -25,18 +25,6 @@ public function testSpidAuthenticatorExtendsAbstractGuardAuthenticator() $this->assertTrue($authenticator instanceof AbstractGuardAuthenticator); } - /** - * @test - */ - public function testIGetAnExceptionIfUserProviderIsNotASpidUserProvider() - { - $this->expectException(\InvalidArgumentException::class); - - $authenticator = new SpidAuthenticator(); - $wrongProvider = $mockLogger = $this->getMockBuilder(UserProviderInterface::class)->getMock(); - $authenticator->getUser([], $wrongProvider); - } - /** * @test */ diff --git a/composer.json b/composer.json index 62b5ce0..33aa16f 100644 --- a/composer.json +++ b/composer.json @@ -14,11 +14,11 @@ ], "require": { "php": ">=7.0", - "italia/spid-php-lib": "dev-master#b8fb960a39f8febf92fc9ea32df6e637fbbdccb7 as 1.0", - "symfony/framework-bundle": "~2.7|~3.0", - "symfony/console": "~2.7|~3.0", - "symfony/process": "~2.7|~3.0", - "symfony/yaml": "~2.7|~3.0", + "italia/spid-php-lib": "^0.10.0", + "symfony/framework-bundle": "~2.7|~3.0|~4.0", + "symfony/console": "~2.7|~3.0|~4.0", + "symfony/process": "~2.7|~3.0|~4.0", + "symfony/yaml": "~2.7|~3.0|~4.0", "twig/twig": "^1.28.2|^2.0" }, "require-dev": {