save() public method

Save mixed editor
public save ( ) : void
return void
Beispiel #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testSave()
 {
     $post = $this->object->getRequest()->getPost();
     $post->set($this->object->getName(), array(array(array('textstring51' => 'test1')), array(array('textstring51' => 'test2'))));
     $_FILES = array($this->object->getName() => array('name' => array(array(array('textstring51' => array(__DIR__ . '/test')))), 'type' => array(array(array('textstring51' => array('plain/text')))), 'size' => array(array(array('textstring51' => array(8)))), 'tmp_name' => array(array(array('textstring51' => array(__DIR__ . '/test')))), 'error' => array(array(array('textstring51' => array(0))))));
     $this->object->save();
     $this->assertEquals('a:2:{i:0;a:1:{i:0;a:1:{s:5:"value";N;}}i:1;a:1:{i:0;a:1:{s:5:"value";N;}}}', $this->object->getValue());
 }