You are here

public function MarcEncodeTest::setUp in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_marc/tests/src/Kernel/MarcEncodeTest.php \Drupal\Tests\bibcite_marc\Kernel\MarcEncodeTest::setUp()

Overrides FormatEncoderTestBase::setUp

File

modules/bibcite_marc/tests/src/Kernel/MarcEncodeTest.php, line 31

Class

MarcEncodeTest
@coversDefaultClass \Drupal\bibcite_marc\Encoder\MarcEncoder @group bibcite

Namespace

Drupal\Tests\bibcite_marc\Kernel

Code

public function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'system',
    'user',
    'serialization',
    'bibcite',
    'bibcite_entity',
    'bibcite_marc',
  ]);
  $this->encoder = new MarcEncoder();
  $this->format = 'marc';
  $this->encodedExtension = 'mrc';
  $this->resultDir = __DIR__ . '/../../data/encoded';
  $this->inputDir = __DIR__ . '/../../data/decoded';
}