Xpressengine\DynamicField\ConfigHandler::put PHP Méthode

put() public méthode

config 수정
public put ( ConfigEntity $config ) : void
$config Xpressengine\Config\ConfigEntity config entity
Résultat void
    public function put(ConfigEntity $config)
    {
        $this->configManager->put($this->getConfigName($config), $config->getPureAll());
    }

Usage Example

 /**
  * test config put
  *
  * @return void
  */
 public function testPut()
 {
     $conn = m::mock('Xpressengine\\Database\\VirtualConnectionInterface');
     $configManager = m::mock('Xpressengine\\Config\\ConfigManager');
     $configManager->shouldReceive('put');
     $handler = new ConfigHandler($conn, $configManager);
     $config = m::mock('Xpressengine\\Config\\ConfigEntity');
     $config->shouldReceive('get')->with('group')->andReturn('group');
     $config->shouldReceive('get')->with('id')->andReturn('id');
     $config->shouldReceive('getPureAll')->andReturn([]);
     $handler->put($config);
 }
All Usage Examples Of Xpressengine\DynamicField\ConfigHandler::put