You are here

private function PotxTestCase::buildOutput in Translation template extractor 7.2

Same name and namespace in other branches
  1. 6.3 tests/potx.test \PotxTestCase::buildOutput()
  2. 7.3 tests/potx.test \PotxTestCase::buildOutput()

Build the output from parsed files.

1 call to PotxTestCase::buildOutput()
PotxTestCase::testDrupal8ShippedConfiguration in tests/potx.test
Test parsing of Drupal 8 shipped configuration files.

File

tests/potx.test, line 512
Tests to ensure that the template extractor works as intended.

Class

PotxTestCase
@file Tests to ensure that the template extractor works as intended.

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);
}