MAJ en Thelia 2.3.4
@@ -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();
|
||||
|
||||
@@ -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
@@ -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
|
||||
*
|
||||
|
||||
0
tests/phpunit/Thelia/Tests/Action/assets/images/sources/test-image-1.png
Normal file → Executable file
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
0
tests/phpunit/Thelia/Tests/Action/assets/images/sources/test-image-2.png
Normal file → Executable file
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
0
tests/phpunit/Thelia/Tests/Action/assets/images/sources/test-image-3.png
Normal file → Executable file
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
0
tests/phpunit/Thelia/Tests/Action/assets/images/sources/test-image-4.png
Normal file → Executable file
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
0
tests/phpunit/Thelia/Tests/Action/assets/images/sources/test-image-5.png
Normal file → Executable file
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
0
tests/phpunit/Thelia/Tests/Action/assets/images/sources/test-image-6.png
Normal file → Executable file
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
0
tests/phpunit/Thelia/Tests/Action/assets/images/sources/test-image-7.png
Normal file → Executable file
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
0
tests/phpunit/Thelia/Tests/Action/assets/images/sources/test-image-8.png
Normal file → Executable file
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
0
tests/phpunit/Thelia/Tests/Action/assets/images/sources/test-image-9.png
Normal file → Executable file
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |