You are here

public function UnitTest::testGetFields in TacJS 8

@covers Drupal\tacjs\TacjsSettings::getFields

File

tests/src/Unit/UnitTest.php, line 32

Class

UnitTest
Simple test to ensure that asserts pass.

Namespace

Drupal\tacjs

Code

public function testGetFields() {
  $values = [
    "purechat" => "purechat",
  ];
  $data = TacjsSettings::SUPPORT;
  $result = [
    0 => [
      "value" => "purechat",
      "name" => "Purechat",
    ],
  ];
  $this
    ->assertEquals($result, $this->fixture
    ->getFields($values, $data));
}