Пример #1
0
 public function testLayoutDependColumnCount()
 {
     $this->_block->setLayout(\Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\\Framework\\View\\LayoutInterface'));
     $this->assertEquals(3, $this->_block->getColumnCount());
     /* default column count */
     $this->_block->addColumnCountLayoutDepend('test', 10);
     $this->assertEquals(10, $this->_block->getColumnCountLayoutDepend('test'));
     $this->_block->removeColumnCountLayoutDepend('test');
     $this->assertFalse($this->_block->getColumnCountLayoutDepend('test'));
 }