save() public method

Save upload editor
public save ( ) : void
return void
Beispiel #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testSaveWithWrongMimeType()
 {
     $this->object->setConfig(array('is_multiple' => true, 'mime_list' => array('image/gif', 'image/jpeg', 'image/png')));
     $_FILES = array($this->object->getName() => array('name' => __DIR__ . '/_files/test.bmp', 'type' => 'plain/text', 'size' => 8, 'tmp_name' => __DIR__ . '/_files/test.bmp', 'error' => 0));
     $this->object->save();
     $result = $this->object->getValue();
     $this->removeDirectories();
     $this->assertInternalType('string', $result);
 }