public function FetcherResultTest::testGetSanitizedFilePath in Feeds 8.3
@covers ::getFilePath
File
- tests/
src/ Unit/ Result/ FetcherResultTest.php, line 36
Class
- FetcherResultTest
- @coversDefaultClass \Drupal\feeds\Result\FetcherResult @group feeds
Namespace
Drupal\Tests\feeds\Unit\ResultCode
public function testGetSanitizedFilePath() {
file_put_contents('vfs://feeds/test_file', pack('CCC', 0xef, 0xbb, 0xbf) . 'I am test data.');
$result = new FetcherResult('vfs://feeds/test_file');
$this
->assertSame('I am test data.', file_get_contents($result
->getFilePath()));
}