فهرست منبع

merged branch drak/securitybundle_test (PR #2888)

Commits
-------

62f3dc4 [SecurityBundle] Changed environment to something unique.

Discussion
----------

[SecurityBundle] Fix name clash with functional tests

Bug fix: no
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -

Functional tests need a unique environment or it will produce class redeclare errors when multiple bundles are functional tested at the same time.
Fabien Potencier 13 سال پیش
والد
کامیت
75dfc7945a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php

+ 1 - 1
src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php

@@ -59,7 +59,7 @@ class WebTestCase extends BaseWebTestCase
         return new $class(
             $options['test_case'],
             isset($options['root_config']) ? $options['root_config'] : 'config.yml',
-            isset($options['environment']) ? $options['environment'] : 'test',
+            isset($options['environment']) ? $options['environment'] : 'securitybundletest',
             isset($options['debug']) ? $options['debug'] : true
         );
     }