public function testAfterGetMetaNegative()
 {
     $this->helper->expects($this->any())->method('isGoogleExperimentActive')->willReturn(false);
     $result = $this->plugin->afterGetMeta($this->subject, []);
     $children = $result['data']['children'];
     $this->assertArrayHasKey('experiment_script', $children);
     $this->assertTrue($children['experiment_script']['arguments']['data']['config']['componentDisabled']);
     $this->assertArrayHasKey('code_id', $children);
     $this->assertTrue($children['code_id']['arguments']['data']['config']['componentDisabled']);
 }
 /**
  * @param bool $flag
  * @return void
  */
 protected function canShowPanel($flag)
 {
     $storeId = 1;
     $this->productMock->expects($this->any())->method('getStoreId')->willReturn($storeId);
     $this->dataHelperMock->expects($this->once())->method('isGoogleExperimentActive')->with($storeId)->willReturn($flag);
 }