mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11857] Use passed service collection instead of container in manager
The service collection that was already passed to the avatar manager should be used in the avatar manager method get_driver() instead of the container itself. PHPBB3-11857
This commit is contained in:
@@ -112,7 +112,7 @@ class phpbb_avatar_manager_test extends PHPUnit_Framework_TestCase
|
||||
public function test_get_driver_enabled($driver_name, $expected)
|
||||
{
|
||||
$driver = $this->manager->get_driver($driver_name);
|
||||
$this->assertEquals($expected, $driver);
|
||||
$this->assertEquals($expected, ($driver === null) ? null : $driver->get_name());
|
||||
}
|
||||
|
||||
public function get_driver_data_all()
|
||||
@@ -133,7 +133,7 @@ class phpbb_avatar_manager_test extends PHPUnit_Framework_TestCase
|
||||
public function test_get_driver_all($driver_name, $expected)
|
||||
{
|
||||
$driver = $this->manager->get_driver($driver_name, false);
|
||||
$this->assertEquals($expected, $driver);
|
||||
$this->assertEquals($expected, ($driver === null) ? $driver : $driver->get_name());
|
||||
}
|
||||
|
||||
public function test_get_avatar_settings()
|
||||
|
Reference in New Issue
Block a user