@@ -1887,9 +1887,7 @@ public function testInheritTranslationDomainFromParent()
1887
1887
->createNamedBuilder ('parent ' , FormTypeTest::TESTED_TYPE , null , array (
1888
1888
'translation_domain ' => 'domain ' ,
1889
1889
))
1890
- ->add ('child ' , static ::TESTED_TYPE , array (
1891
- 'choices_as_values ' => true ,
1892
- ))
1890
+ ->add ('child ' , static ::TESTED_TYPE )
1893
1891
->getForm ()
1894
1892
->createView ();
1895
1893
@@ -1899,7 +1897,6 @@ public function testInheritTranslationDomainFromParent()
1899
1897
public function testPassTranslationDomainToView ()
1900
1898
{
1901
1899
$ view = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
1902
- 'choices_as_values ' => true ,
1903
1900
'translation_domain ' => 'domain ' ,
1904
1901
))
1905
1902
->createView ();
@@ -1914,7 +1911,6 @@ public function testPreferOwnTranslationDomain()
1914
1911
'translation_domain ' => 'parent_domain ' ,
1915
1912
))
1916
1913
->add ('child ' , static ::TESTED_TYPE , array (
1917
- 'choices_as_values ' => true ,
1918
1914
'translation_domain ' => 'domain ' ,
1919
1915
))
1920
1916
->getForm ()
@@ -1926,9 +1922,7 @@ public function testPreferOwnTranslationDomain()
1926
1922
public function testDefaultTranslationDomain ()
1927
1923
{
1928
1924
$ view = $ this ->factory ->createNamedBuilder ('parent ' , FormTypeTest::TESTED_TYPE )
1929
- ->add ('child ' , static ::TESTED_TYPE , array (
1930
- 'choices_as_values ' => true ,
1931
- ))
1925
+ ->add ('child ' , static ::TESTED_TYPE )
1932
1926
->getForm ()
1933
1927
->createView ();
1934
1928
@@ -1937,9 +1931,7 @@ public function testDefaultTranslationDomain()
1937
1931
1938
1932
public function testPassMultipartFalseToView ()
1939
1933
{
1940
- $ view = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
1941
- 'choices_as_values ' => true ,
1942
- ))
1934
+ $ view = $ this ->factory ->create (static ::TESTED_TYPE , null )
1943
1935
->createView ();
1944
1936
1945
1937
$ this ->assertFalse ($ view ->vars ['multipart ' ]);
@@ -1949,7 +1941,6 @@ public function testPassLabelToView()
1949
1941
{
1950
1942
$ view = $ this ->factory ->createNamed ('__test___field ' , static ::TESTED_TYPE , null , array (
1951
1943
'label ' => 'My label ' ,
1952
- 'choices_as_values ' => true ,
1953
1944
))
1954
1945
->createView ();
1955
1946
@@ -1960,9 +1951,7 @@ public function testPassIdAndNameToViewWithGrandParent()
1960
1951
{
1961
1952
$ builder = $ this ->factory ->createNamedBuilder ('parent ' , FormTypeTest::TESTED_TYPE )
1962
1953
->add ('child ' , FormTypeTest::TESTED_TYPE );
1963
- $ builder ->get ('child ' )->add ('grand_child ' , static ::TESTED_TYPE , array (
1964
- 'choices_as_values ' => true ,
1965
- ));
1954
+ $ builder ->get ('child ' )->add ('grand_child ' , static ::TESTED_TYPE );
1966
1955
$ view = $ builder ->getForm ()->createView ();
1967
1956
1968
1957
$ this ->assertEquals ('parent_child_grand_child ' , $ view ['child ' ]['grand_child ' ]->vars ['id ' ]);
@@ -1973,9 +1962,7 @@ public function testPassIdAndNameToViewWithGrandParent()
1973
1962
public function testPassIdAndNameToViewWithParent ()
1974
1963
{
1975
1964
$ view = $ this ->factory ->createNamedBuilder ('parent ' , FormTypeTest::TESTED_TYPE )
1976
- ->add ('child ' , static ::TESTED_TYPE , array (
1977
- 'choices_as_values ' => true ,
1978
- ))
1965
+ ->add ('child ' , static ::TESTED_TYPE )
1979
1966
->getForm ()
1980
1967
->createView ();
1981
1968
@@ -1988,17 +1975,14 @@ public function testPassDisabledAsOption()
1988
1975
{
1989
1976
$ form = $ this ->factory ->create (static ::TESTED_TYPE , null , array (
1990
1977
'disabled ' => true ,
1991
- 'choices_as_values ' => true ,
1992
1978
));
1993
1979
1994
1980
$ this ->assertTrue ($ form ->isDisabled ());
1995
1981
}
1996
1982
1997
1983
public function testPassIdAndNameToView ()
1998
1984
{
1999
- $ view = $ this ->factory ->createNamed ('name ' , static ::TESTED_TYPE , null , array (
2000
- 'choices_as_values ' => true ,
2001
- ))
1985
+ $ view = $ this ->factory ->createNamed ('name ' , static ::TESTED_TYPE , null )
2002
1986
->createView ();
2003
1987
2004
1988
$ this ->assertEquals ('name ' , $ view ->vars ['id ' ]);
@@ -2008,9 +1992,7 @@ public function testPassIdAndNameToView()
2008
1992
2009
1993
public function testStripLeadingUnderscoresAndDigitsFromId ()
2010
1994
{
2011
- $ view = $ this ->factory ->createNamed ('_09name ' , static ::TESTED_TYPE , null , array (
2012
- 'choices_as_values ' => true ,
2013
- ))
1995
+ $ view = $ this ->factory ->createNamed ('_09name ' , static ::TESTED_TYPE , null )
2014
1996
->createView ();
2015
1997
2016
1998
$ this ->assertEquals ('name ' , $ view ->vars ['id ' ]);
@@ -2029,7 +2011,6 @@ public function testTrimIsDisabled($multiple, $expanded)
2029
2011
'choices ' => array (
2030
2012
'a ' => '1 ' ,
2031
2013
),
2032
- 'choices_as_values ' => true ,
2033
2014
));
2034
2015
2035
2016
$ submittedData = ' 1 ' ;
@@ -2054,7 +2035,6 @@ public function testSubmitValueWithWhiteSpace($multiple, $expanded)
2054
2035
'choices ' => array (
2055
2036
'a ' => $ valueWhitWhiteSpace ,
2056
2037
),
2057
- 'choices_as_values ' => true ,
2058
2038
));
2059
2039
2060
2040
$ form ->submit ($ multiple ? (array ) $ valueWhitWhiteSpace : $ valueWhitWhiteSpace );
0 commit comments