Xpressengine\Captcha\CaptchaManager::getDefaultDriver PHP 메소드

getDefaultDriver() 공개 메소드

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

Usage Example

예제 #1
0
 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