"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimezoneTypeTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

TimezoneTypeTest.php  (phplist-3.4.5.tgz):TimezoneTypeTest.php  (phplist-3.4.6.tgz)
skipping to change at line 26 skipping to change at line 26
class TimezoneTypeTest extends BaseTypeTest class TimezoneTypeTest extends BaseTypeTest
{ {
const TESTED_TYPE = 'Symfony\Component\Form\Extension\Core\Type\TimezoneType '; const TESTED_TYPE = 'Symfony\Component\Form\Extension\Core\Type\TimezoneType ';
public function testTimezonesAreSelectable() public function testTimezonesAreSelectable()
{ {
$choices = $this->factory->create(static::TESTED_TYPE) $choices = $this->factory->create(static::TESTED_TYPE)
->createView()->vars['choices']; ->createView()->vars['choices'];
$this->assertArrayHasKey('Africa', $choices); $this->assertArrayHasKey('Africa', $choices);
$this->assertContains(new ChoiceView('Africa/Kinshasa', 'Africa/Kinshasa ', 'Kinshasa'), $choices['Africa'], '', false, false); $this->assertContainsEquals(new ChoiceView('Africa/Kinshasa', 'Africa/Ki nshasa', 'Kinshasa'), $choices['Africa']);
$this->assertArrayHasKey('America', $choices); $this->assertArrayHasKey('America', $choices);
$this->assertContains(new ChoiceView('America/New_York', 'America/New_Yo rk', 'New York'), $choices['America'], '', false, false); $this->assertContainsEquals(new ChoiceView('America/New_York', 'America/ New_York', 'New York'), $choices['America']);
} }
public function testSubmitNull($expected = null, $norm = null, $view = null) public function testSubmitNull($expected = null, $norm = null, $view = null)
{ {
parent::testSubmitNull($expected, $norm, ''); parent::testSubmitNull($expected, $norm, '');
} }
public function testSubmitNullUsesDefaultEmptyData($emptyData = 'Africa/Kins hasa', $expectedData = 'Africa/Kinshasa') public function testSubmitNullUsesDefaultEmptyData($emptyData = 'Africa/Kins hasa', $expectedData = 'Africa/Kinshasa')
{ {
$form = $this->factory->create(static::TESTED_TYPE, null, [ $form = $this->factory->create(static::TESTED_TYPE, null, [
skipping to change at line 73 skipping to change at line 73
$form->submit(['Europe/Amsterdam', 'Europe/Paris']); $form->submit(['Europe/Amsterdam', 'Europe/Paris']);
$this->assertEquals([new \DateTimeZone('Europe/Amsterdam'), new \DateTim eZone('Europe/Paris')], $form->getData()); $this->assertEquals([new \DateTimeZone('Europe/Amsterdam'), new \DateTim eZone('Europe/Paris')], $form->getData());
} }
public function testFilterByRegions() public function testFilterByRegions()
{ {
$choices = $this->factory->create(static::TESTED_TYPE, null, ['regions' => \DateTimeZone::EUROPE]) $choices = $this->factory->create(static::TESTED_TYPE, null, ['regions' => \DateTimeZone::EUROPE])
->createView()->vars['choices']; ->createView()->vars['choices'];
$this->assertContains(new ChoiceView('Europe/Amsterdam', 'Europe/Amsterd am', 'Amsterdam'), $choices, '', false, false); $this->assertContainsEquals(new ChoiceView('Europe/Amsterdam', 'Europe/A msterdam', 'Amsterdam'), $choices);
} }
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)