Xpressengine\Captcha\CaptchaManager::getDefaultDriver PHP Method

getDefaultDriver() public method

Get the default captcha driver name.
public getDefaultDriver ( ) : string
return string
    public function getDefaultDriver()
    {
        return $this->app['config']['captcha.driver'];
    }

Usage Example

 public function testGetAndSetDefaultDriver()
 {
     list($app, $config) = $this->getMocks();
     $instance = new CaptchaManager($app);
     $app->shouldReceive('offsetGet')->with('config')->andReturn($config);
     //        $app->shouldReceive('offsetSet');
     $this->assertEquals('google', $instance->getDefaultDriver());
     $instance->setDefaultDriver('another');
     $this->assertEquals('another', $instance->getDefaultDriver());
 }
All Usage Examples Of Xpressengine\Captcha\CaptchaManager::getDefaultDriver