minor #32748 Typo in variable name (OskarStark)

This PR was merged into the 4.4 branch.

Discussion
----------

Typo in variable name

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        |

Refs #32587

Commits
-------

784d1d0 Typo in variable name
This commit is contained in:
Yonel Ceruto 2019-07-25 13:36:47 -04:00
commit e3afab7e76

View File

@ -114,13 +114,13 @@ class ValidatorTypeGuesserTest extends TestCase
public function testGuessMimeTypesForConstraintWithMimeTypesValue()
{
$mineTypes = ['image/png', 'image/jpeg'];
$constraint = new File(['mimeTypes' => $mineTypes]);
$mimeTypes = ['image/png', 'image/jpeg'];
$constraint = new File(['mimeTypes' => $mimeTypes]);
$typeGuess = $this->guesser->guessTypeForConstraint($constraint);
$this->assertInstanceOf('Symfony\Component\Form\Guess\TypeGuess', $typeGuess);
$this->assertArrayHasKey('attr', $typeGuess->getOptions());
$this->assertArrayHasKey('accept', $typeGuess->getOptions()['attr']);
$this->assertEquals(implode(',', $mineTypes), $typeGuess->getOptions()['attr']['accept']);
$this->assertEquals(implode(',', $mimeTypes), $typeGuess->getOptions()['attr']['accept']);
}
public function testGuessMimeTypesForConstraintWithoutMimeTypesValue()