save() public method

Save upload editor
public save ( ) : void
return void
Beispiel #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testSave()
 {
     copy(__DIR__ . '/_files/test-source.bmp', __DIR__ . '/_files/test.bmp');
     $this->object->getRequest()->getPost()->set($this->object->getName(), array(array('name' => ''), array('name' => '../tests/library/Datatypes/jQueryFileUpload/_files/test.jpg'), array('name' => '../tests/library/Datatypes/jQueryFileUpload/_files/test.bmp')));
     $this->object->setConfig(array('is_multiple' => true, 'mime_list' => array('image/gif', 'image/jpeg', 'image/png')));
     $this->object->save();
     $result = $this->object->getValue();
     $this->assertInternalType('string', $this->object->getValue());
 }