Skip to content

Commit

Permalink
Fix logger mocking in MultiAuthTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Jan 31, 2024
1 parent b73fb59 commit 2ab191f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class MultiAuthTest extends \PHPUnit\Framework\TestCase
*/
public function getAuthObject(Config $config = null): MultiAuth
{
$manager = new \VuFind\Auth\PluginManager(
new \VuFindTest\Container\MockContainer($this)
);
$container = new \VuFindTest\Container\MockContainer($this);
$container->set(\VuFind\Log\Logger::class, $this->createMock(\Laminas\Log\LoggerInterface::class));
$manager = new \VuFind\Auth\PluginManager($container);
$obj = $manager->get('MultiAuth');
$obj->setPluginManager($manager);
$obj->setConfig($config ?? $this->getAuthConfig());
Expand Down

0 comments on commit 2ab191f

Please sign in to comment.