diff --git a/core/lib/Thelia/Tests/Core/Template/Loop/BrandTest.php b/core/lib/Thelia/Tests/Core/Template/Loop/BrandTest.php new file mode 100644 index 000000000..f9a601693 --- /dev/null +++ b/core/lib/Thelia/Tests/Core/Template/Loop/BrandTest.php @@ -0,0 +1,63 @@ + + * + */ +class BrandTest extends BaseLoopTestor +{ + public function getTestedClassName() + { + return 'Thelia\Core\Template\Loop\Brand'; + } + + public function getTestedInstance() + { + return new Brand($this->container); + } + + public function getMandatoryArguments() + { + return array(); + } + + public function testSearchById() + { + $brand = BrandQuery::create()->findOne(); + if (null === $brand) { + $brand = new \Thelia\Model\Brand(); + $brand->setVisible(1); + $brand->setTitle('foo'); + $brand->save(); + } + + $otherParameters = array( + "visible" => "*", + ); + + $this->baseTestSearchById($brand->getId(), $otherParameters); + } + + public function testSearchLimit() + { + $this->baseTestSearchWithLimit(3); + } +}