This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
$this->assertPathMatch('public://'.$test_file->getFilename(),$node_file->getFileUri(),format_string('The file %file was uploaded to the correct path.',array('%file'=>$node_file->getFileUri())));
// Change the path to contain multiple subdirectories.
$this->assertPathMatch('public://foo/bar/baz/'.$test_file->getFilename(),$node_file->getFileUri(),format_string('The file %file was uploaded to the correct path.',array('%file'=>$node_file->getFileUri())));
// Check the path when used with tokens.
// Change the path to contain multiple token directories.
$this->assertPathMatch('public://'.$subdirectory.'/'.$test_file->getFilename(),$node_file->getFileUri(),format_string('The file %file was uploaded to the correct path with token replacements.',array('%file'=>$node_file->getFileUri())));