You are here

public function ConfigFormTest::testBuildForm in Flysystem 2.0.x

Same name and namespace in other branches
  1. 8 tests/src/Unit/Form/ConfigFormTest.php \Drupal\Tests\flysystem\Unit\Form\ConfigFormTest::testBuildForm()
  2. 3.x tests/src/Unit/Form/ConfigFormTest.php \Drupal\Tests\flysystem\Unit\Form\ConfigFormTest::testBuildForm()
  3. 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\Form

Code

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']);
}