BibtexEncodeTest.php in Bibliography & Citation 8
File
modules/bibcite_bibtex/tests/src/Kernel/BibtexEncodeTest.php
View source
<?php
namespace Drupal\Tests\bibcite_bibtex\Kernel;
use Drupal\bibcite_bibtex\Encoder\BibtexEncoder;
use Drupal\Tests\bibcite_export\Kernel\FormatEncoderTestBase;
class BibtexEncodeTest extends FormatEncoderTestBase {
public static $modules = [
'system',
'user',
'serialization',
'bibcite',
'bibcite_entity',
'bibcite_bibtex',
];
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';
}
}