public function DataManagerTest::testFrxFileDriver in Forena Reports 8
Test XML File Data Source
File
- tests/
src/ Unit/ DataManagerTest.php, line 27 - Implements DataManagerTest
Class
- DataManagerTest
- @group Forena @require module forena @coversDefaultClass \Drupal\forena\DataManager
Namespace
Drupal\Tests\forena\UnitCode
public function testFrxFileDriver() {
// Check the data source.
$dataSource = $this->dmSvc
->repository('test');
$this
->assertInstanceOf('\\Drupal\\forena\\FrxPlugin\\Driver\\FrxFiles', $dataSource);
// Validate a functional XML pull from driver
$xml = $this->dmSvc
->data('test/simple_data');
$this
->assertInstanceOf('\\SimpleXMLElement', $xml);
// Verify that there is a row
$row = $xml->row;
$this
->assertInstanceOf('\\SimpleXMLElement', $row);
}