Skip to content

Commit

Permalink
[Form] Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Chalas committed Apr 7, 2019
1 parent d8b03ee commit 35418be
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -11,16 +11,26 @@

namespace Symfony\Component\Form\Tests\Extension\Core\Type;

use Symfony\Component\Form\Extension\Core\CoreExtension;
use Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler;
use Symfony\Component\Form\NativeRequestHandler;
use Symfony\Component\Form\RequestHandlerInterface;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\Translation\TranslatorInterface;

class FileTypeTest extends BaseTypeTest
{
const TESTED_TYPE = 'Symfony\Component\Form\Extension\Core\Type\FileType';

protected function getExtensions()
{
$translator = $this->createMock(TranslatorInterface::class);
$translator->expects($this->any())->method('trans')->willReturnArgument(0);

return array_merge(parent::getExtensions(), [new CoreExtension(null, null, $translator)]);
}

// https://github.com/symfony/symfony/pull/5028
public function testSetData()
{
Expand Down

0 comments on commit 35418be

Please sign in to comment.