You are here

private function PotxTest::buildOutput in Translation template extractor 8

Build the output from parsed files.

1 call to PotxTest::buildOutput()
PotxTest::testDrupal8ShippedConfiguration in tests/src/Kernel/PotxTest.php
Test parsing of Drupal 8 shipped configuration files.

File

tests/src/Kernel/PotxTest.php, line 703

Class

PotxTest
Ensure that the translation template extractor functions properly.

Namespace

Drupal\Tests\potx\Kernel

Code

private function buildOutput($api_version, $string_mode = POTX_STRING_RUNTIME) {
  potx_status('set', POTX_STATUS_STRUCTURED);
  _potx_build_files($string_mode, POTX_BUILD_SINGLE, 'general', '_potx_save_string', '_potx_save_version', '_potx_get_header', NULL, NULL, $api_version);

  // Grab .po representation of parsed content.
  ob_start();
  _potx_write_files('potx-test.po');
  $this->potx_output = ob_get_clean();
  $this->potx_status = potx_status('get', TRUE);
}