public function testUploadActionWithoutId()
{
$_FILES = array('upload' => array('name' => array('upload.phtml', 'test.phtml', 'test2.phtml'), 'type' => array('plain/text', 'plain/text', 'plain/text'), 'size' => array(8, 8, 8), 'tmp_name' => array(__DIR__ . '/_files/upload.phtml', __DIR__ . '/_files/test.phtml', __DIR__ . '/_files/test.phtml'), 'error' => array(UPLOAD_ERR_OK, UPLOAD_ERR_OK, UPLOAD_ERR_NO_FILE)));
$viewModel = ViewModel::fromArray(array('name' => 'ViewName', 'identifier' => 'upload'));
$viewModel->save();
$this->dispatch('/admin/development/view/upload');
$this->assertResponseStatusCode(302);
$this->assertModuleName('GcDevelopment');
$this->assertControllerName('ViewController');
$this->assertControllerClass('ViewController');
$this->assertMatchedRouteName('development/view/upload');
$viewModel->delete();
}