From 27f6612c3279fd7428af9127eeaf4ac0d69d8334 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Fri, 23 Aug 2013 10:58:10 +0200 Subject: [PATCH] associated content loop test --- .../Template/Loop/AssociatedContentTest.php | 51 +++++++++++++++++++ install/sqldb.map | 2 - 2 files changed, 51 insertions(+), 2 deletions(-) create mode 100755 core/lib/Thelia/Tests/Core/Template/Loop/AssociatedContentTest.php delete mode 100644 install/sqldb.map diff --git a/core/lib/Thelia/Tests/Core/Template/Loop/AssociatedContentTest.php b/core/lib/Thelia/Tests/Core/Template/Loop/AssociatedContentTest.php new file mode 100755 index 000000000..0a12ad076 --- /dev/null +++ b/core/lib/Thelia/Tests/Core/Template/Loop/AssociatedContentTest.php @@ -0,0 +1,51 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Tests\Core\Template\Loop; + +use Thelia\Tests\Core\Template\Element\BaseLoopTestor; + +use Thelia\Core\Template\Loop\AssociatedContent; + +/** + * + * @author Etienne Roudeix + * + */ +class AssociatedContentTest extends BaseLoopTestor +{ + public function getTestedClassName() + { + return 'Thelia\Core\Template\Loop\AssociatedContent'; + } + + public function getTestedInstance() + { + return new AssociatedContent($this->request, $this->dispatcher, $this->securityContext); + } + + public function getMandatoryArguments() + { + return array('product' => 1); + } +} diff --git a/install/sqldb.map b/install/sqldb.map deleted file mode 100644 index 63a93baa8..000000000 --- a/install/sqldb.map +++ /dev/null @@ -1,2 +0,0 @@ -# Sqlfile -> Database map -thelia.sql=thelia