You are here

public function ImportBasicTest::importData in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_import/tests/src/Kernel/ImportBasicTest.php \Drupal\Tests\bibcite_import\Kernel\ImportBasicTest::importData()

Get test data from YAML.

Return value

array Data for import test.

File

modules/bibcite_import/tests/src/Kernel/ImportBasicTest.php, line 118

Class

ImportBasicTest
Basic import tests.

Namespace

Drupal\Tests\bibcite_import\Kernel

Code

public function importData() {
  $yaml_text = file_get_contents(__DIR__ . '/data/ImportBasicTest.data.yml');
  return Yaml::parse($yaml_text);
}