public function RawFetcherResultTest::testGetFilePath in Feeds 8.3
@covers ::getFilePath
File
- tests/
src/ Unit/ Result/ RawFetcherResultTest.php, line 25
Class
- RawFetcherResultTest
- @coversDefaultClass \Drupal\feeds\Result\RawFetcherResult @group feeds
Namespace
Drupal\Tests\feeds\Unit\ResultCode
public function testGetFilePath() {
$result = new RawFetcherResult('raw text', $this
->getMockFileSystem());
$this
->assertSame(file_get_contents($result
->getFilePath()), 'raw text');
// Call again to see if exception is thrown.
$this
->assertSame(file_get_contents($result
->getFilePath()), 'raw text');
}