/** * Tests the supportsClass() method. */ public function testSupportsClass() { $container = new Container(); $container->addScope(new Scope(ContaoCoreBundle::SCOPE_FRONTEND)); $container->enterScope(ContaoCoreBundle::SCOPE_FRONTEND); $provider = new ContaoUserProvider($container, $this->framework); $this->assertTrue($provider->supportsClass('Contao\\FrontendUser')); }
/** * Tests the supportsClass() method. */ public function testSupportsClass() { $provider = new ContaoUserProvider($this->mockContainerWithContaoScopes(ContaoCoreBundle::SCOPE_FRONTEND), $this->framework); $this->assertTrue($provider->supportsClass('Contao\\FrontendUser')); }