Fix transiant tests in 4.4
This commit is contained in:
parent
91fb5fae36
commit
833029ca7e
@ -118,9 +118,9 @@ abstract class AdapterTestCase extends CachePoolTest
|
|||||||
|
|
||||||
$metadata = $item->getMetadata();
|
$metadata = $item->getMetadata();
|
||||||
$this->assertArrayHasKey(CacheItem::METADATA_CTIME, $metadata);
|
$this->assertArrayHasKey(CacheItem::METADATA_CTIME, $metadata);
|
||||||
$this->assertEqualsWithDelta(1000, $metadata[CacheItem::METADATA_CTIME], 6);
|
$this->assertEqualsWithDelta(999, $metadata[CacheItem::METADATA_CTIME], 10);
|
||||||
$this->assertArrayHasKey(CacheItem::METADATA_EXPIRY, $metadata);
|
$this->assertArrayHasKey(CacheItem::METADATA_EXPIRY, $metadata);
|
||||||
$this->assertEqualsWithDelta(9.5 + time(), $metadata[CacheItem::METADATA_EXPIRY], 0.6);
|
$this->assertEqualsWithDelta(9 + time(), $metadata[CacheItem::METADATA_EXPIRY], 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testDefaultLifeTime()
|
public function testDefaultLifeTime()
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Symfony\Component\Routing\Tests\Loader;
|
namespace Symfony\Component\Routing\Tests\Loader\DependencyInjection;
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\DependencyInjection\Container;
|
use Symfony\Component\DependencyInjection\Container;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Symfony\Component\Security\Http\Tests;
|
namespace Symfony\Component\Security\Http\Tests\Authentication;
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
@ -69,7 +69,7 @@ class SimpleAuthenticationHandlerTest extends TestCase
|
|||||||
$this->successHandler->expects($this->never())
|
$this->successHandler->expects($this->never())
|
||||||
->method('onAuthenticationSuccess');
|
->method('onAuthenticationSuccess');
|
||||||
|
|
||||||
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\TestSuccessHandlerInterface');
|
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\Authentication\TestSuccessHandlerInterface');
|
||||||
$authenticator->expects($this->once())
|
$authenticator->expects($this->once())
|
||||||
->method('onAuthenticationSuccess')
|
->method('onAuthenticationSuccess')
|
||||||
->with($this->request, $this->token)
|
->with($this->request, $this->token)
|
||||||
@ -88,7 +88,7 @@ class SimpleAuthenticationHandlerTest extends TestCase
|
|||||||
$this->successHandler->expects($this->never())
|
$this->successHandler->expects($this->never())
|
||||||
->method('onAuthenticationSuccess');
|
->method('onAuthenticationSuccess');
|
||||||
|
|
||||||
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\TestSuccessHandlerInterface');
|
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\Authentication\TestSuccessHandlerInterface');
|
||||||
$authenticator->expects($this->once())
|
$authenticator->expects($this->once())
|
||||||
->method('onAuthenticationSuccess')
|
->method('onAuthenticationSuccess')
|
||||||
->with($this->request, $this->token)
|
->with($this->request, $this->token)
|
||||||
@ -105,7 +105,7 @@ class SimpleAuthenticationHandlerTest extends TestCase
|
|||||||
->with($this->request, $this->token)
|
->with($this->request, $this->token)
|
||||||
->willReturn($this->response);
|
->willReturn($this->response);
|
||||||
|
|
||||||
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\TestSuccessHandlerInterface');
|
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\Authentication\TestSuccessHandlerInterface');
|
||||||
$authenticator->expects($this->once())
|
$authenticator->expects($this->once())
|
||||||
->method('onAuthenticationSuccess')
|
->method('onAuthenticationSuccess')
|
||||||
->with($this->request, $this->token)
|
->with($this->request, $this->token)
|
||||||
@ -137,7 +137,7 @@ class SimpleAuthenticationHandlerTest extends TestCase
|
|||||||
$this->failureHandler->expects($this->never())
|
$this->failureHandler->expects($this->never())
|
||||||
->method('onAuthenticationFailure');
|
->method('onAuthenticationFailure');
|
||||||
|
|
||||||
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\TestFailureHandlerInterface');
|
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\Authentication\TestFailureHandlerInterface');
|
||||||
$authenticator->expects($this->once())
|
$authenticator->expects($this->once())
|
||||||
->method('onAuthenticationFailure')
|
->method('onAuthenticationFailure')
|
||||||
->with($this->request, $this->authenticationException)
|
->with($this->request, $this->authenticationException)
|
||||||
@ -156,7 +156,7 @@ class SimpleAuthenticationHandlerTest extends TestCase
|
|||||||
$this->failureHandler->expects($this->never())
|
$this->failureHandler->expects($this->never())
|
||||||
->method('onAuthenticationFailure');
|
->method('onAuthenticationFailure');
|
||||||
|
|
||||||
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\TestFailureHandlerInterface');
|
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\Authentication\TestFailureHandlerInterface');
|
||||||
$authenticator->expects($this->once())
|
$authenticator->expects($this->once())
|
||||||
->method('onAuthenticationFailure')
|
->method('onAuthenticationFailure')
|
||||||
->with($this->request, $this->authenticationException)
|
->with($this->request, $this->authenticationException)
|
||||||
@ -173,7 +173,7 @@ class SimpleAuthenticationHandlerTest extends TestCase
|
|||||||
->with($this->request, $this->authenticationException)
|
->with($this->request, $this->authenticationException)
|
||||||
->willReturn($this->response);
|
->willReturn($this->response);
|
||||||
|
|
||||||
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\TestFailureHandlerInterface');
|
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\Authentication\TestFailureHandlerInterface');
|
||||||
$authenticator->expects($this->once())
|
$authenticator->expects($this->once())
|
||||||
->method('onAuthenticationFailure')
|
->method('onAuthenticationFailure')
|
||||||
->with($this->request, $this->authenticationException)
|
->with($this->request, $this->authenticationException)
|
||||||
|
Reference in New Issue
Block a user