public function testSaveProductRelationsNoChildren() { $childrenIds = $this->_product->getTypeInstance()->getChildrenIds(1); $this->assertNotEmpty(reset($childrenIds)); $this->_product->setAssociatedProductIds(array()); $this->_model->save($this->_product); $this->_product->load(1); $this->assertEquals(array(array()), $this->_product->getTypeInstance()->getChildrenIds(1)); }