Beispiel #1
0
 /**
  * Prepare the merging of the fields and return a document
  *
  * @param Container $container
  *
  * @return Document
  */
 public function prepare()
 {
     $blocks = $this->container->getBlocks();
     $fields = array_merge($this->container->getFields(), $this->container->getImages());
     $this->declareListOfBlocks($blocks)->declareListOfValues($fields);
     return $this->createDocument();
 }
Beispiel #2
0
 public function test_assign_store_singleValue()
 {
     $container = new LDXContainer();
     $container->assign('test', 'testValue');
     $this->array($container->getFields())->hasKeys(['test'])->containsValues(['testValue']);
 }