Bolt\Tests\Controller\Backend\UploadTest::testMultipleHandlerParsing PHP Метод

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

    public function testMultipleHandlerParsing()
    {
        $this->getApp()->flush();
        $this->setRequest(Request::create('/upload/files', 'POST', ['handler' => ['files://', 'ftp://']], [], ['files' => [['tmp_name' => __DIR__ . '/resources/generic-logo.png', 'name' => 'logo.png']]], []));
        // Not properly implemented as yet, this will need to be revisited on implementation
        $this->setExpectedException('Bolt\\Filesystem\\Exception\\FileNotFoundException', 'File not found at path: logo.png');
        $this->controller()->uploadNamespace($this->getRequest(), 'files');
    }