/** * @depends testApply */ public function testGetItems(Mage_Catalog_Model_Layer_Filter_Category $modelApplied) { $items = $modelApplied->getItems(); $this->assertInternalType('array', $items); $this->assertEquals(1, count($items)); /** @var $item Mage_Catalog_Model_Layer_Filter_Item */ $item = $items[0]; $this->assertInstanceOf('Mage_Catalog_Model_Layer_Filter_Item', $item); $this->assertSame($modelApplied, $item->getFilter()); $this->assertEquals('Category 1.1', $item->getLabel()); $this->assertEquals(4, $item->getValue()); $this->assertEquals(1, $item->getCount()); }