Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+24 -2
View File
@@ -308,12 +308,12 @@ class CompoundFormTest extends AbstractFormTest
$this->form[] = $child;
$this->assertTrue(isset($this->form['foo']));
$this->assertArrayHasKey('foo', $this->form);
$this->assertSame($child, $this->form['foo']);
unset($this->form['foo']);
$this->assertFalse(isset($this->form['foo']));
$this->assertArrayNotHasKey('foo', $this->form);
}
public function testCountable()
@@ -1014,6 +1014,28 @@ class CompoundFormTest extends AbstractFormTest
$this->assertSame($button, $this->form->getClickedButton());
}
public function testDisabledButtonIsNotSubmitted()
{
$button = new SubmitButtonBuilder('submit');
$submit = $button
->setDisabled(true)
->getForm();
$form = $this->createForm()
->add($this->getBuilder('text')->getForm())
->add($submit)
;
$form->submit(array(
'text' => '',
'submit' => '',
));
$this->assertTrue($submit->isDisabled());
$this->assertFalse($submit->isClicked());
$this->assertFalse($submit->isSubmitted());
}
protected function createForm()
{
return $this->getBuilder()