You are here

public function AReportTokenTest::testCustomContext in Forena Reports 8

Test token replacement from a custom data context.

File

tests/src/Unit/AReportTokenTest.php, line 57

Class

AReportTokenTest
Class AReportTokenTest @group Forena @require module forena @coversDefaultClass \Drupal\forena\Token\ReportReplacer

Namespace

Drupal\Tests\forena\Unit

Code

public function testCustomContext() {
  $text = $this->replacer
    ->replace('you are {custom_security.secure} secure.');
  $this
    ->assertEquals('you are not secure.', $text);
}