From bdc68c3b8a5d62711f05102e2135712e01466a18 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 13 Mar 2015 12:21:11 +0100 Subject: [PATCH] removed obsolete test --- .../Handler/MongoDbSessionHandlerTest.php | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php index 50f8a0d6d5..57639405d2 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php @@ -233,30 +233,6 @@ class MongoDbSessionHandlerTest extends \PHPUnit_Framework_TestCase $this->assertTrue($this->storage->gc(1)); } - public function testGcWhenUsingExpiresField() - { - $this->options = array( - 'id_field' => '_id', - 'data_field' => 'data', - 'time_field' => 'time', - 'database' => 'sf2-test', - 'collection' => 'session-test', - 'expiry_field' => 'expiresAt', - ); - - $this->storage = new MongoDbSessionHandler($this->mongo, $this->options); - - $collection = $this->createMongoCollectionMock(); - - $this->mongo->expects($this->never()) - ->method('selectCollection'); - - $collection->expects($this->never()) - ->method('remove'); - - $this->assertTrue($this->storage->gc(1)); - } - public function testGetConnection() { $method = new \ReflectionMethod($this->storage, 'getMongo');