Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Form] Reproduce CountryType BC break #21475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Reproduce CountryType BC
  • Loading branch information
geoffrey-brier committed Jan 31, 2017
commit c5f8c0c68f6d56e052e33c0315e33b95c8f576c3
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,12 @@ public function testUnknownCountryIsNotIncluded()
}
}
}

public function testSubmitNull()
{
$form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\CountryType');
$form->submit(null);

$this->assertNull($form->getData());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,12 @@ public function testMultipleLanguagesIsNotIncluded()

$this->assertNotContains(new ChoiceView('mul', 'mul', 'Mehrsprachig'), $choices, '', false, false);
}

public function testSubmitNull()
{
$form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\LanguageType');
$form->submit(null);

$this->assertNull($form->getData());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,12 @@ public function testLocalesAreSelectable()
$this->assertContains(new ChoiceView('en_GB', 'en_GB', 'English (United Kingdom)'), $choices, '', false, false);
$this->assertContains(new ChoiceView('zh_Hant_MO', 'zh_Hant_MO', 'Chinese (Traditional, Macau SAR China)'), $choices, '', false, false);
}

public function testSubmitNull()
{
$form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\LocaleType');
$form->submit(null);

$this->assertNull($form->getData());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,12 @@ public function testPassDifferentPatternsForDifferentCurrencies()
$this->assertSame('{{ widget }} £', $view1->vars['money_pattern']);
$this->assertSame('{{ widget }} €', $view2->vars['money_pattern']);
}

public function testSubmitNull()
{
$form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\MoneyType');
$form->submit(null);

$this->assertNull($form->getData());
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.