public function ConfigFormTest::testBuildForm in Flysystem 8
Same name and namespace in other branches
- 3.x tests/src/Unit/Form/ConfigFormTest.php \Drupal\Tests\flysystem\Unit\Form\ConfigFormTest::testBuildForm()
- 2.0.x tests/src/Unit/Form/ConfigFormTest.php \Drupal\Tests\flysystem\Unit\Form\ConfigFormTest::testBuildForm()
- 3.0.x tests/src/Unit/Form/ConfigFormTest.php \Drupal\Tests\flysystem\Unit\Form\ConfigFormTest::testBuildForm()
@covers ::buildForm
File
- tests/
src/ Unit/ Form/ ConfigFormTest.php, line 83
Class
- ConfigFormTest
- @coversDefaultClass \Drupal\flysystem\Form\ConfigForm @group flysystem
Namespace
Drupal\Tests\flysystem\Unit\FormCode
public function testBuildForm() {
$form = $this->form
->buildForm([], new FormState());
$this
->assertSame(4, count($form));
$this
->assertTrue($form['sync_from']['#required']);
$this
->assertTrue($form['sync_to']['#required']);
}