You are here

public function BibtexDecodeTest::setUp in Bibliography & Citation 8

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

Overrides FormatDecoderTestBase::setUp

File

modules/bibcite_bibtex/tests/src/Kernel/BibtexDecodeTest.php, line 31

Class

BibtexDecodeTest
@coversDefaultClass \Drupal\bibcite_bibtex\Encoder\BibtexEncoder @group bibcite

Namespace

Drupal\Tests\bibcite_bibtex\Kernel

Code

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