/**
  * @dataProvider validateDataProvider
  */
 public function testValidate($variableArray, $objectId, $expectedResult)
 {
     $code = 'variable_code';
     $this->model->setCode($code)->setName('some_name');
     $this->resourceMock->expects($this->once())->method('getVariableByCode')->with($code)->willReturn($variableArray);
     $this->model->setId($objectId);
     $this->assertEquals($expectedResult, $this->model->validate($variableArray));
 }