Пример #1
0
 /**
  * @covers VariableApi::setAll
  */
 public function testSetAllAndGetAll()
 {
     $variables = ['int' => 9, 'name' => 'john', 'string' => 'aabbccdd'];
     $this->assertTrue($this->api->setAll('TestSet', $variables));
     $this->assertEquals($this->api->getAll('TestSet'), $variables);
 }
Пример #2
0
 /**
  * Convenience shortcut to set many Extension Variables.
  * @param array $variables
  * @return bool
  */
 public function setVars(array $variables)
 {
     return $this->variableApi->setAll($this->extensionName, $variables);
 }