minor #18121 Rename Choosen to Chosen in ModelChoiceListTest (Koalabaerchen)
This PR was merged into the 2.3 branch.
Discussion
----------
Rename Choosen to Chosen in ModelChoiceListTest
| Q | A
| ------------- | ---
| Branch | 2.3
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | no
| Fixed tickets | #18091
| License | MIT
| Doc PR | n/a
Commits
-------
5e4b515
Fix for Isssue #18091
This commit is contained in:
commit
1dee322033
|
@ -186,7 +186,7 @@ class ModelChoiceListTest extends Propel1TestCase
|
||||||
$this->assertEquals(array(1, 2), $choiceList->getIndicesForChoices(array($item1, $item2)));
|
$this->assertEquals(array(1, 2), $choiceList->getIndicesForChoices(array($item1, $item2)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testDifferentEqualObjectsAreChoosen()
|
public function testDifferentEqualObjectsAreChosen()
|
||||||
{
|
{
|
||||||
$item = new Item(1, 'Foo');
|
$item = new Item(1, 'Foo');
|
||||||
|
|
||||||
|
@ -200,10 +200,10 @@ class ModelChoiceListTest extends Propel1TestCase
|
||||||
array($item)
|
array($item)
|
||||||
);
|
);
|
||||||
|
|
||||||
$choosenItem = new Item(1, 'Foo');
|
$chosenItem = new Item(1, 'Foo');
|
||||||
|
|
||||||
$this->assertEquals(array(1), $choiceList->getIndicesForChoices(array($choosenItem)));
|
$this->assertEquals(array(1), $choiceList->getIndicesForChoices(array($chosenItem)));
|
||||||
$this->assertEquals(array('1'), $choiceList->getValuesForChoices(array($choosenItem)));
|
$this->assertEquals(array('1'), $choiceList->getValuesForChoices(array($chosenItem)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetIndicesForNullChoices()
|
public function testGetIndicesForNullChoices()
|
||||||
|
|
Reference in New Issue