public function testMassactionDefaultValues() { $this->assertEquals(0, $this->_block->getCount()); $this->assertFalse($this->_block->isAvailable()); $this->assertEquals('massaction', $this->_block->getFormFieldName()); $this->assertEquals('internal_massaction', $this->_block->getFormFieldNameInternal()); $this->assertEquals('test_grid_massactionJsObject', $this->_block->getJsObjectName()); $this->assertEquals('test_gridJsObject', $this->_block->getGridJsObjectName()); $this->assertEquals('test_grid_massaction', $this->_block->getHtmlId()); $this->assertTrue($this->_block->getUseSelectAll()); }
/** * @covers getItems * @covers getCount * @covers getItemsJson * @covers isAvailable */ public function testMassactionDefaultValues() { $blockEmpty = new Mage_Backend_Block_Widget_Grid_Massaction(); $this->assertEmpty($blockEmpty->getItems()); $this->assertEquals(0, $blockEmpty->getCount()); $this->assertSame('[]', $blockEmpty->getItemsJson()); $this->assertFalse($blockEmpty->isAvailable()); }