You are here

public function BibtexEncodeTest::setUp in Bibliography & Citation 2.0.x

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

Overrides FormatEncoderTestBase::setUp

File

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

Class

BibtexEncodeTest
@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->encodedExtension = 'bib';
  $this->resultDir = __DIR__ . '/../../data/encoded';
  $this->inputDir = __DIR__ . '/../../data/decoded';
}