Пример #1
0
 public function testRemoveAllItems()
 {
     $model = new Varien_Data_Collection();
     $model->addItem(new Varien_Object());
     $model->addItem(new Varien_Object());
     $this->assertCount(2, $model->getItems());
     $model->removeAllItems();
     $this->assertEmpty($model->getItems());
 }