setDefaultDriver() public method

Set the default captcha driver name.
public setDefaultDriver ( string $name ) : void
$name string driver name
return void
Ejemplo n.º 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());
 }