Esempio n. 1
0
 /**
  * @test
  */
 public function createReturnsInstanceOfSelectMultipleSideBySideElementIfNeeded()
 {
     $globalOptions = array('renderType' => 'select', 'parameterArray' => array('fieldConf' => array('config' => array('maxitems' => 2))));
     $subject = new NodeFactory();
     $this->assertInstanceOf(Element\SelectMultipleSideBySideElement::class, $subject->create($globalOptions));
 }
Esempio n. 2
0
 /**
  * @test
  */
 public function createReturnsInstanceOfSelectSingleElementIfNeeded()
 {
     $data = array('type' => 'select', 'renderType' => 'selectSingle', 'parameterArray' => array('fieldConf' => array('config' => array('maxitems' => 1))));
     $subject = new NodeFactory();
     $this->assertInstanceOf(Element\SelectSingleElement::class, $subject->create($data));
 }