Commit 10b54a17 authored by Loparev's avatar Loparev
Browse files

Fixed tests

parent b29bead1
......@@ -14,7 +14,7 @@ class BaseFlowTest extends SmartlingTestBase {
/**
* {@inheritdoc}
*/
public function setUp() {
public function setUp(): void {
parent::setUp();
$api_factory_mock = $this->getMockBuilder('\Drupal\tmgmt_smartling\Smartling\SmartlingApiFactory')
......
......@@ -18,7 +18,7 @@ class BufferLoggerTest extends SmartlingTestBase {
public static $modules = ['system'];
public function setUp() {
public function setUp(): void {
parent::setUp();
$this->httpClient = $this->getMockBuilder('GuzzleHttp\Client')
......
......@@ -24,7 +24,7 @@ abstract class SmartlingTestBase extends TMGMTKernelTestBase {
/**
* {@inheritdoc}
*/
public function setUp() {
public function setUp(): void {
parent::setUp();
// Suppress deprecation errors.
......
......@@ -24,7 +24,7 @@ class SmartlingTranslatorTest extends SmartlingTestBase {
*/
protected $moduleHandler;
public function setUp() {
public function setUp(): void {
parent::setUp();
require_once __DIR__ . '/../../../vendor/autoload.php';
......
......@@ -24,7 +24,7 @@ class TranslationRequestManagerTest extends SmartlingTestBase {
/**
* {@inheritdoc}
*/
public function setUp() {
public function setUp(): void {
parent::setUp();
$api_factory_mock = $this->getMockBuilder('\Drupal\tmgmt_smartling\Smartling\SmartlingApiFactory')
......
......@@ -13,7 +13,7 @@ use Drupal\tmgmt_smartling\Plugin\tmgmt_file\Format\Xml;
class XmlPluginTest extends SmartlingTestBase {
protected $xmlPlugin;
public function setUp() {
public function setUp(): void {
parent::setUp();
require_once __DIR__ . '/../../../vendor/autoload.php';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment