You are here

public function HidePreviewTest::testEmptyMultiline2Array in Hide Preview Button 8

Tests that the multiline2Array method returns the right amount of values.

File

src/tests/src/Unit/HidePreviewTest.php, line 53

Class

HidePreviewTest
Tests some functions of the Hide Preview module.

Namespace

Drupal\Tests\phpunit_example\Unit

Code

public function testEmptyMultiline2Array() {
  $multiline = "0";
  $array = $this->configForm
    ->multiline2Array($multiline);
  $this
    ->assertEquals(1, count($array));
}