Skip to content

Commit

Permalink
Fix php_cs_fixer warnings and removed one unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
covex-nn committed Jan 10, 2018
1 parent 27b92fd commit 163262e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function getConfigTreeBuilder()
$rootNode
->children()
->scalarNode('db_driver')
->defaultValue("no_driver")
->defaultValue('no_driver')
->validate()
->ifNotInArray($supportedDrivers)
->thenInvalid('The driver %s is not supported. Please choose one of '.json_encode($supportedDrivers))
Expand Down
2 changes: 1 addition & 1 deletion Model/GroupManagerNone.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace FOS\UserBundle\Model;

/**
* Fallback Group Manager implementation when db_driver is not configured
* Fallback Group Manager implementation when db_driver is not configured.
*
* @author Andrey F. Mindubaev <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/UserManagerNone.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace FOS\UserBundle\Model;

/**
* Fallback User Manager implementation when db_driver is not configured
* Fallback User Manager implementation when db_driver is not configured.
*
* @author Andrey F. Mindubaev <[email protected]>
*/
Expand Down
11 changes: 0 additions & 11 deletions Tests/DependencyInjection/FOSUserExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ protected function tearDown()
unset($this->configuration);
}

/**
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
*/
public function testUserLoadThrowsExceptionUnlessDatabaseDriverSet()
{
$loader = new FOSUserExtension();
$config = $this->getEmptyConfig();
unset($config['db_driver']);
$loader->load(array($config), new ContainerBuilder());
}

/**
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
*/
Expand Down

0 comments on commit 163262e

Please sign in to comment.