Skip to content

Commit 163262e

Browse files
committed
Fix php_cs_fixer warnings and removed one unit test
1 parent 27b92fd commit 163262e

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function getConfigTreeBuilder()
3939
$rootNode
4040
->children()
4141
->scalarNode('db_driver')
42-
->defaultValue("no_driver")
42+
->defaultValue('no_driver')
4343
->validate()
4444
->ifNotInArray($supportedDrivers)
4545
->thenInvalid('The driver %s is not supported. Please choose one of '.json_encode($supportedDrivers))

Model/GroupManagerNone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace FOS\UserBundle\Model;
1313

1414
/**
15-
* Fallback Group Manager implementation when db_driver is not configured
15+
* Fallback Group Manager implementation when db_driver is not configured.
1616
*
1717
* @author Andrey F. Mindubaev <[email protected]>
1818
*/

Model/UserManagerNone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace FOS\UserBundle\Model;
1313

1414
/**
15-
* Fallback User Manager implementation when db_driver is not configured
15+
* Fallback User Manager implementation when db_driver is not configured.
1616
*
1717
* @author Andrey F. Mindubaev <[email protected]>
1818
*/

Tests/DependencyInjection/FOSUserExtensionTest.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@ protected function tearDown()
2626
unset($this->configuration);
2727
}
2828

29-
/**
30-
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
31-
*/
32-
public function testUserLoadThrowsExceptionUnlessDatabaseDriverSet()
33-
{
34-
$loader = new FOSUserExtension();
35-
$config = $this->getEmptyConfig();
36-
unset($config['db_driver']);
37-
$loader->load(array($config), new ContainerBuilder());
38-
}
39-
4029
/**
4130
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
4231
*/

0 commit comments

Comments
 (0)