示例#1
0
 /**
  * @dataProvider dataTrueFalse
  *
  * @param bool $status
  */
 public function testSetAutoAddServers($status)
 {
     if ($status) {
         $this->config->expects($this->once())->method('setAppValue')->with('federation', 'autoAddServers', '1');
     } else {
         $this->config->expects($this->once())->method('setAppValue')->with('federation', 'autoAddServers', '0');
     }
     $this->trustedServers->setAutoAddServers($status);
 }
 /**
  * enable/disable to automatically add servers to the list of trusted servers
  * once a federated share was created and accepted successfully
  *
  * @param bool $autoAddServers
  */
 public function autoAddServers($autoAddServers)
 {
     $this->trustedServers->setAutoAddServers($autoAddServers);
 }