Exemplo n.º 1
0
 public function setUp()
 {
     $fields = array('TAG' => 'text', 'name0' => 'text', 'name1' => 'integer');
     $this->_customFieldManager = $this->getMockBuilder('Model\\Client\\CustomFieldManager')->disableOriginalConstructor()->getMock();
     $this->_customFieldManager->expects($this->once())->method('getFields')->willReturn($fields);
     parent::setUp();
 }
Exemplo n.º 2
0
 public function setUp()
 {
     $fields = array('TAG' => 'text', 'name0' => 'text', 'name1' => 'integer');
     $this->_customFieldManager = $this->createMock('Model\\Client\\CustomFieldManager');
     $this->_customFieldManager->expects($this->once())->method('getFields')->willReturn($fields);
     parent::setUp();
 }
 /**
  * Set up Config mock object
  */
 public function setUp()
 {
     $this->_config = $this->createMock('Model\\Config');
     $this->_config->expects($this->any())->method('__get')->with('inspectRegistry')->willReturn(1);
     $resultSet = new \Zend\Db\ResultSet\ResultSet();
     $resultSet->initialize($this->_values);
     $this->_registryManager = $this->createMock('Model\\Registry\\RegistryManager');
     $this->_registryManager->expects($this->once())->method('getValueDefinitions')->willReturn($resultSet);
     parent::setUp();
 }
Exemplo n.º 4
0
 public function setUp()
 {
     $resultSet = new \Zend\Db\ResultSet\ResultSet();
     $resultSet->initialize(array(array('Name' => 'RegValue')));
     $this->_registryManager = $this->createMock('Model\\Registry\\RegistryManager');
     $this->_registryManager->expects($this->once())->method('getValueDefinitions')->willReturn($resultSet);
     $this->_customFieldManager = $this->createMock('Model\\Client\\CustomFieldManager');
     $this->_customFieldManager->expects($this->once())->method('getFields')->will($this->returnValue(array('TAG' => 'text', 'Clob' => 'clob', 'Integer' => 'integer', 'Float' => 'float', 'Date' => 'date')));
     parent::setUp();
 }
Exemplo n.º 5
0
 public function setUp()
 {
     $this->_config = $this->getMockBuilder('Model\\Config')->disableOriginalConstructor()->getMock();
     return parent::setUp();
 }
Exemplo n.º 6
0
 public function setUp()
 {
     $this->_operatorManager = $this->getMockBuilder('Model\\Operator\\OperatorManager')->disableOriginalConstructor()->getMock();
     $this->_operatorManager->method('getAllIds')->willReturn(array('User'));
     parent::setUp();
 }
Exemplo n.º 7
0
 public function setUp()
 {
     $this->_customFieldManager = $this->createMock('Model\\Client\\CustomFieldManager');
     $this->_customFieldManager->expects($this->once())->method('getFields')->willReturn(array('TAG' => 'text', 'Clob' => 'clob', 'Integer' => 'integer', 'Float' => 'float', 'Date' => 'date'));
     parent::setUp();
 }
Exemplo n.º 8
0
 public function setUp()
 {
     $this->_config = $this->createMock('Model\\Config');
     return parent::setUp();
 }
Exemplo n.º 9
0
 public function setUp()
 {
     $this->_client = $this->getMockBuilder('Model\\Client\\Client')->disableOriginalConstructor()->getMock();
     $this->_group = $this->getMockBuilder('Model\\Group\\Group')->disableOriginalConstructor()->getMock();
     parent::setUp();
 }
Exemplo n.º 10
0
 public function setUp()
 {
     $this->_operatorManager = $this->createMock('Model\\Operator\\OperatorManager');
     $this->_operatorManager->method('getAllIds')->willReturn(array('User1', 'User2'));
     parent::setUp();
 }
Exemplo n.º 11
0
 /**
  * Set up Config mock object
  */
 public function setUp()
 {
     $this->_config = $this->getMockBuilder('Model\\Config')->disableOriginalconstructor()->getMock();
     $this->_config->expects($this->any())->method('__get')->will($this->returnValueMap(array(array('defaultMergeCustomFields', 1), array('defaultMergeGroups', 1), array('defaultMergePackages', 0))));
     parent::setUp();
 }
Exemplo n.º 12
0
 public function setUp()
 {
     $this->_client = $this->createMock('Model\\Client\\Client');
     $this->_group = $this->createMock('Model\\Group\\Group');
     parent::setUp();
 }
 public function setUp()
 {
     $this->_deviceManager = $this->getMockBuilder('Model\\Network\\DeviceManager')->disableOriginalConstructor()->getMock();
     $this->_deviceManager->expects($this->once())->method('getTypeCounts')->willReturn(array('name0' => 0, 'name1' => 1));
     parent::setUp();
 }
Exemplo n.º 14
0
 public function setUp()
 {
     $this->_groupManager = $this->createMock('Model\\Group\\GroupManager');
     parent::setUp();
 }
Exemplo n.º 15
0
 /**
  * Set up Config mock object
  */
 public function setUp()
 {
     $this->_config = $this->createMock('Model\\Config');
     $this->_config->expects($this->any())->method('__get')->will($this->returnValueMap(array(array('defaultMergeCustomFields', 1), array('defaultMergeGroups', 1), array('defaultMergePackages', 0))));
     parent::setUp();
 }
Exemplo n.º 16
0
 public function setUp()
 {
     $this->_customFieldManager = $this->getMockBuilder('Model\\Client\\CustomFieldManager')->disableOriginalConstructor()->getMock();
     $this->_customFieldManager->expects($this->once())->method('getFields')->willReturn(array('TAG' => 'text', 'Clob' => 'clob', 'Integer' => 'integer', 'Float' => 'float', 'Date' => 'date'));
     parent::setUp();
 }
Exemplo n.º 17
0
 public function setUp()
 {
     $this->_deviceManager = $this->createMock('Model\\Network\\DeviceManager');
     $this->_deviceManager->expects($this->once())->method('getTypeCounts')->willReturn(array('name0' => 0, 'name1' => 1));
     parent::setUp();
 }
Exemplo n.º 18
0
 public function setUp()
 {
     $this->_groupManager = $this->getMockBuilder('Model\\Group\\GroupManager')->disableOriginalConstructor()->getMock();
     parent::setUp();
 }