public function FileFieldPathsTokensTestCase::assertToken in File (Field) Paths 7
Parameters
$token:
$value:
$data:
4 calls to FileFieldPathsTokensTestCase::assertToken()
- FileFieldPathsTokensTestCase::testTokensBasic in tests/
filefield_paths.tokens.test - Test token values with a text file.
- FileFieldPathsTokensTestCase::testTokensMoved in tests/
filefield_paths.tokens.test - Test token values with a moved text file.
- FileFieldPathsTokensTestCase::testTokensMultiExtension in tests/
filefield_paths.tokens.test - Test token values with a multi-extension text file.
- FileFieldPathsTokensTestCase::testTokensUTF in tests/
filefield_paths.tokens.test - Test token value with a UTF file.
File
- tests/
filefield_paths.tokens.test, line 28 - Tests for the File (Field) Paths module.
Class
- FileFieldPathsTokensTestCase
- Class FileFieldPathsTokensTestCase
Code
public function assertToken($token, $value, $data) {
$result = token_replace($token, $data);
$this
->assertEqual($result, $value, t('Token @token equals @value', array(
'@token' => $token,
'@value' => $value,
)));
}