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