public function ConfigFormTest::testBuildForm in Flysystem 2.0.x
Same name and namespace in other branches
- 8 tests/src/Unit/Form/ConfigFormTest.php \Drupal\Tests\flysystem\Unit\Form\ConfigFormTest::testBuildForm()
- 3.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 87
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']);
}