MAJ en Thelia 2.3.4

This commit is contained in:
2020-05-03 08:14:07 +02:00
parent 72ddf49e60
commit 35a800ca0e
328 changed files with 9560 additions and 14163 deletions

View File

@@ -12,6 +12,7 @@
namespace Thelia\Tests\Action;
use Symfony\Component\Cache\Adapter\ArrayAdapter;
use Symfony\Component\Filesystem\Filesystem;
use Thelia\Action\Cache;
use Thelia\Core\Event\Cache\CacheEvent;
@@ -37,7 +38,8 @@ class CacheTest extends \PHPUnit_Framework_TestCase
{
$event = new CacheEvent($this->dir);
$action = new Cache();
$adapter = new ArrayAdapter();
$action = new Cache($adapter);
$action->cacheClear($event);
$fs = new Filesystem();

View File

@@ -26,7 +26,7 @@ use Thelia\Model\Folder as FolderModel;
/**
* Class FolderTest
* @package Thelia\Tests\Action\ImageTest
* @package Thelia\Tests\Action
* @author Manuel Raynaud <manu@raynaud.io>
*/
class FolderTest extends TestCaseWithURLToolSetup

0
tests/phpunit/Thelia/Tests/Action/ImageTest.php Normal file → Executable file
View File

View File

@@ -622,6 +622,29 @@ class OrderTest extends BaseAction
);
}
/**
* @depends testCreate
*
* @param OrderModel $order
*/
public function testUpdateTransactionRef(OrderModel $order)
{
$transactionRef = uniqid('TRANSREF');
$this->orderEvent->setTransactionRef($transactionRef);
$this->orderEvent->setOrder($order);
$this->orderAction->updateTransactionRef($this->orderEvent);
$this->assertEquals(
$transactionRef,
$this->orderEvent->getOrder()->getTransactionRef()
);
$this->assertEquals(
$transactionRef,
OrderQuery::create()->findPk($order->getId())->getTransactionRef()
);
}
/**
* @depends testCreate
*

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB