You are here

public function TestSubContext::escapeTextArguments in Drupal Commons 7.3

Convert escaped characters in arguments.

@Transform :value @Transform :text

File

tests/steps/commons_test.behat.inc, line 148
Provide Behat step-definitions for generic Commons tests.

Class

TestSubContext

Code

public function escapeTextArguments($argument) {
  $argument = str_replace('\\"', '"', $argument);
  $argument = str_replace('\\n', "\n", $argument);
  return $argument;
}