mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
alias for legacy tests
This commit is contained in:
parent
4d94b95b9e
commit
596d6f0b76
@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (class_exists('LegacyTests\Unit\ContextMocker')) {
|
||||
class_alias('LegacyTests\Unit\ContextMocker', 'Tests\Unit\ContextMocker');
|
||||
}
|
||||
|
||||
abstract class RetailcrmTestCase extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $contextMock;
|
||||
@ -9,7 +13,7 @@ abstract class RetailcrmTestCase extends \PHPUnit\Framework\TestCase
|
||||
parent::setUp();
|
||||
|
||||
if (version_compare(_PS_VERSION_, '1.7', '>')) {
|
||||
$contextMocker = new \LegacyTests\Unit\ContextMocker();
|
||||
$contextMocker = new \Tests\Unit\ContextMocker();
|
||||
$this->contextMock = $contextMocker->mockContext();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user