From 4bdc06e21650d5583c9a0bd6bb4a7c7a3a358570 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Fri, 27 Sep 2013 09:30:22 +0200 Subject: [PATCH] try to fix test --- core/lib/Thelia/Tests/Action/OrderTest.php | 4 ++-- install/faker.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/lib/Thelia/Tests/Action/OrderTest.php b/core/lib/Thelia/Tests/Action/OrderTest.php index 4e07e3d80..384f8e172 100644 --- a/core/lib/Thelia/Tests/Action/OrderTest.php +++ b/core/lib/Thelia/Tests/Action/OrderTest.php @@ -238,7 +238,7 @@ class OrderTest extends \PHPUnit_Framework_TestCase ->findOne(); if(null === $deliveryModule) { - return; + throw new \Exception('No Delivery Module fixture found'); } $paymentModule = ModuleQuery::create() @@ -247,7 +247,7 @@ class OrderTest extends \PHPUnit_Framework_TestCase ->findOne(); if(null === $paymentModule) { - return; + throw new \Exception('No Payment Module fixture found'); } $this->orderEvent->getOrder()->chosenDeliveryAddress = $validDeliveryAddress->getId(); diff --git a/install/faker.php b/install/faker.php index f0aa002e5..7d0d0ccd3 100755 --- a/install/faker.php +++ b/install/faker.php @@ -141,7 +141,7 @@ try { $stmt->execute(); - echo "Creating customer\n"; + echo "Creating customers\n"; //customer $customer = new Thelia\Model\Customer(); @@ -291,7 +291,7 @@ try { ->save(); } - echo "Creating folders and content\n"; + echo "Creating folders and contents\n"; //folders and contents $contentIdList = array();