Example #1
0
 public function testGetIdentities()
 {
     $categoryTag = ['catalog_category_1'];
     $currentCatogoryMock = $this->getMock('Magento\\Catalog\\Model\\Category', [], [], '', false);
     $currentCatogoryMock->expects($this->once())->method('getIdentities')->will($this->returnValue($categoryTag));
     $this->block->setCurrentCategory($currentCatogoryMock);
     $this->assertEquals($categoryTag, $this->block->getIdentities());
 }