Datatypes\Upload\EditorTest::testSave PHP Метод

testSave() публичный Метод

Test
public testSave ( ) : void
Результат void
    public function testSave()
    {
        $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.jpg', 'type' => 'plain/text', 'size' => 8, 'tmp_name' => __DIR__ . '/_files/test.jpg', 'error' => 0));
        $this->object->save();
        $result = $this->object->getValue();
        $this->removeDirectories();
        $this->assertInternalType('string', $this->object->getValue());
    }