public function testGetIdentities()
 {
     $productTags = ['catalog_product_1'];
     $product = $this->getMock('Magento\\Catalog\\Model\\Product', [], [], '', false);
     $category = $this->getMock('Magento\\Catalog\\Model\\Category', [], [], '', false);
     $product->expects($this->once())->method('getIdentities')->will($this->returnValue($productTags));
     $category->expects($this->once())->method('getId')->will($this->returnValue(1));
     $this->registryMock->expects($this->any())->method('registry')->will($this->returnValueMap([['product', $product], ['current_category', $category]]));
     $this->assertEquals(['catalog_product_1', 'catalog_category_product_1'], $this->view->getIdentities());
 }
 /**
  * {@inheritdoc}
  */
 public function getIdentities()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getIdentities');
     if (!$pluginInfo) {
         return parent::getIdentities();
     } else {
         return $this->___callPlugins('getIdentities', func_get_args(), $pluginInfo);
     }
 }