/** * Get elements collection * * @return Collection */ public function getElements() { if (empty($this->_elements)) { $this->_elements = $this->_factoryCollection->create(['container' => $this]); } return $this->_elements; }
/** * @covers \Magento\Framework\Data\Form\Element\CollectionFactory::create */ public function testCreate() { $this->assertInstanceOf('Magento\\Framework\\Data\\Form\\Element\\Collection', $this->_model->create([])); }