You are here

public function CsvEncoderTest::testDecodeCsv in CSV Serialization 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/CsvEncoderTest.php \Drupal\Tests\csv_serialization\Unit\CsvEncoderTest::testDecodeCsv()

Tests the data structure created by decoding a CSV.

@dataProvider provideDecodeData

File

tests/src/Unit/CsvEncoderTest.php, line 139

Class

CsvEncoderTest
Tests the encoding and decoding functionality of CsvEncoder.

Namespace

Drupal\Tests\csv_serialization\Unit

Code

public function testDecodeCsv($csv_encoded, $csv_data) {
  $this
    ->assertEquals($csv_data, $this->encoder
    ->decode($csv_encoded, 'csv'));
}