From f431cb02b44aa8517cd703075e9f9ee85231411f Mon Sep 17 00:00:00 2001 From: Drak Date: Thu, 11 Apr 2013 13:22:46 +0100 Subject: [PATCH] Fix tests --- .../Tests/DependencyInjection/Fixtures/php/full.php | 1 + .../Tests/DependencyInjection/Fixtures/yml/full.yml | 1 + .../Tests/DependencyInjection/FrameworkExtensionTest.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/full.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/full.php index 37afa04dd2..105e89dc99 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/full.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/full.php @@ -24,6 +24,7 @@ $container->loadFromExtension('framework', array( 'session' => array( 'storage_id' => 'session.storage.native', 'handler_id' => 'session.handler.native_file', + 'auto_start' => true, 'on_demand_mode' => 'on', 'name' => '_SYMFONY', 'cookie_lifetime' => 86400, diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/full.yml b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/full.yml index 4bffc8645a..7235b47167 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/full.yml +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/full.yml @@ -18,6 +18,7 @@ framework: session: storage_id: session.storage.native handler_id: session.handler.native_file + auto_start: true on_demand_mode: on name: _SYMFONY cookie_lifetime: 86400 diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php index f1b35a2413..7f331d43e4 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php @@ -98,7 +98,7 @@ abstract class FrameworkExtensionTest extends TestCase $this->assertEquals('session.handler.native_file', (string) $container->getAlias('session.handler')); $this->assertTrue($container->getParameter('session.auto_start')); - $this->assertEquals($container->getParameter('session.storage.on_demand_mode'), 1); + $this->assertEquals($container->getParameter('session.storage.on_demand_mode'), 'on'); $options = $container->getParameter('session.storage.options'); $this->assertEquals('_SYMFONY', $options['name']);