public function testLoadWithInvalidScope() { $provider = new ContaoUserProvider($this->framework); $provider->setContainer($this->mockContainerWithContaoScopes('invalid')); $provider->loadUserByUsername('frontend'); }