This commit is contained in:
Manuel Raynaud
2014-03-09 19:40:36 +01:00
parent 8816306e9f
commit 265d8b5a5f
324 changed files with 23478 additions and 20808 deletions

View File

@@ -27,7 +27,6 @@ use Thelia\Action\Address;
use Thelia\Core\Event\Address\AddressCreateOrUpdateEvent;
use Thelia\Model\Base\CustomerQuery;
/**
*
* test address eventListener

View File

@@ -29,7 +29,6 @@ use Thelia\Core\Event\Administrator\AdministratorUpdatePasswordEvent;
use Thelia\Model\AdminQuery;
use Thelia\Model\LangQuery;
/**
* Class AdministratorTest
* @package Thelia\Tests\Action
@@ -139,5 +138,4 @@ class AdministratorTest extends \PHPUnit_Framework_TestCase
$this->assertTrue(password_verify($adminEvent->getPassword(), $updatedAdmin->getPassword()));
}
}
}

View File

@@ -32,7 +32,6 @@ use Thelia\Core\Event\Area\AreaUpdatePostageEvent;
use Thelia\Model\Area as AreaModel;
use Thelia\Model\CountryQuery;
/**
* Class AreaTest
* @package Thelia\Tests\Action
@@ -149,4 +148,4 @@ class AreaTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($deletedArea->isDeleted());
}
}
}

View File

@@ -30,7 +30,6 @@ use Thelia\Core\Event\Attribute\AttributeAvUpdateEvent;
use Thelia\Model\AttributeQuery;
use Thelia\Model\AttributeAv as AttributeAvModel;
/**
* Class AttributeAvTest
* @package Thelia\Tests\Action
@@ -117,4 +116,4 @@ class AttributeAvTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($deletedAttributeAv->isDeleted());
}
}
}

View File

@@ -29,7 +29,6 @@ use Thelia\Core\Event\Attribute\AttributeUpdateEvent;
use Thelia\Model\Attribute as AttributeModel;
use Thelia\Core\Event\Attribute\AttributeCreateEvent;
/**
* Class AttributeTest
* @package Thelia\Tests\Action
@@ -108,4 +107,4 @@ class AttributeTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($deletedAttribute->isDeleted());
}
}
}

View File

@@ -27,7 +27,6 @@ use Symfony\Component\Filesystem\Filesystem;
use Thelia\Action\Cache;
use Thelia\Core\Event\Cache\CacheEvent;
/**
* Class CacheTest
* @package Thelia\Tests\Action\assets
@@ -56,4 +55,4 @@ class CacheTest extends \PHPUnit_Framework_TestCase
$fs = new Filesystem();
$this->assertFalse($fs->exists($this->dir));
}
}
}

View File

@@ -23,19 +23,14 @@
namespace Thelia\Tests\Action;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Routing\Router;
use Thelia\Action\Category;
use Thelia\Core\Event\Category\CategoryDeleteEvent;
use Thelia\Core\Event\Category\CategoryToggleVisibilityEvent;
use Thelia\Core\Event\Category\CategoryUpdateEvent;
use Thelia\Core\Event\UpdateSeoEvent;
use Thelia\Model\Category as CategoryModel;
use Thelia\Core\Event\Category\CategoryCreateEvent;
use Thelia\Model\CategoryQuery;
use Thelia\Tests\TestCaseWithURLToolSetup;
use Thelia\Tools\URL;
/**
* Class CategoryTest
@@ -162,4 +157,4 @@ class CategoryTest extends TestCaseWithURLToolSetup
$this->assertInstanceOf('Thelia\Model\Category', $updatedCategory);
$this->assertEquals($expectedVisibility, $updatedCategory->getVisible());
}
}
}

View File

@@ -30,7 +30,6 @@ use Thelia\Core\Event\Config\ConfigUpdateEvent;
use Thelia\Model\Config as ConfigModel;
use Thelia\Model\ConfigQuery;
/**
* Class ConfigTest
* @package Thelia\Tests\Action
@@ -38,7 +37,7 @@ use Thelia\Model\ConfigQuery;
*/
class ConfigTest extends \PHPUnit_Framework_TestCase
{
protected $dispatcher;
protected $dispatcher;
public static function setUpBeforeClass()
{
@@ -170,4 +169,4 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($deletedConfig->isDeleted());
}
}
}

View File

@@ -31,7 +31,6 @@ use Thelia\Core\Event\Country\CountryUpdateEvent;
use Thelia\Model\Country as CountryModel;
use Thelia\Model\CountryQuery;
/**
* Class CountryTest
* @package Thelia\Tests\Action
@@ -39,14 +38,13 @@ use Thelia\Model\CountryQuery;
*/
class CountryTest extends \PHPUnit_Framework_TestCase
{
protected $dispatcher;
protected $dispatcher;
public function setUp()
{
$this->dispatcher = $this->getMock("Symfony\Component\EventDispatcher\EventDispatcherInterface");
}
public function testCreate()
{
$event = new CountryCreateEvent();
@@ -148,4 +146,4 @@ class CountryTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(1, CountryQuery::create()->filterByByDefault(1)->count());
}
}
}

View File

@@ -30,7 +30,6 @@ use Thelia\Model\Currency as CurrencyModel;
use Thelia\Core\Event\Currency\CurrencyCreateEvent;
use Thelia\Model\CurrencyQuery;
/**
* Class CurrencyTest
* @package Thelia\Tests\Action
@@ -39,7 +38,7 @@ use Thelia\Model\CurrencyQuery;
class CurrencyTest extends \PHPUnit_Framework_TestCase
{
protected $dispatcher;
protected $dispatcher;
public function setUp()
{
@@ -157,4 +156,4 @@ class CurrencyTest extends \PHPUnit_Framework_TestCase
->limit(1)
->update(array('ByDefault' => true));
}
}
}

View File

@@ -30,7 +30,6 @@ use Thelia\Core\Event\Feature\FeatureAvUpdateEvent;
use Thelia\Model\FeatureAv as FeatureAvModel;
use Thelia\Model\FeatureQuery;
/**
* Class FeatureAvTest
* @package Thelia\Tests\Action
@@ -137,4 +136,4 @@ class FeatureAvTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($deletedFeatureAv->isDeleted());
}
}
}

View File

@@ -29,7 +29,6 @@ use Thelia\Core\Event\Feature\FeatureUpdateEvent;
use Thelia\Model\Feature as FeatureModel;
use Thelia\Core\Event\Feature\FeatureCreateEvent;
/**
* Class FeatureTest
* @package Thelia\Tests\Action
@@ -121,4 +120,4 @@ class FeatureTest extends \PHPUnit_Framework_TestCase
}
}
}

View File

@@ -31,7 +31,6 @@ use Thelia\Model\LangQuery;
use Thelia\Model\Lang as LangModel;
use Thelia\Core\Event\Lang\LangCreateEvent;
/**
* Class LangTest
* @package Thelia\Tests\Action
@@ -170,4 +169,4 @@ class LangTest extends \PHPUnit_Framework_TestCase
->update(array('ByDefault' => true));
}
}
}

View File

@@ -30,7 +30,6 @@ use Thelia\Model\Message as MessageModel;
use Thelia\Core\Event\Message\MessageCreateEvent;
use Thelia\Model\MessageQuery;
/**
* Class MessageTest
* @package Thelia\Tests\Action
@@ -71,7 +70,6 @@ class MessageTest extends \PHPUnit_Framework_TestCase
$this->assertInstanceOf('Thelia\Model\Message', $createdMessage);
$this->assertFalse($createdMessage->isNew());
$this->assertEquals('test', $createdMessage->getName());
$this->assertEquals('en_US', $createdMessage->getLocale());
$this->assertEquals('test title', $createdMessage->getTitle());
@@ -138,4 +136,4 @@ class MessageTest extends \PHPUnit_Framework_TestCase
$this->assertInstanceOf('Thelia\Model\Message', $deletedMessage);
$this->assertTrue($deletedMessage->isDeleted());
}
}
}

View File

@@ -28,7 +28,6 @@ use Thelia\Model\Newsletter as NewsletterModel;
use Thelia\Core\Event\Newsletter\NewsletterEvent;
use Thelia\Model\NewsletterQuery;
/**
* Class NewsletterTest
* @package Thelia\Tests\Action
@@ -110,4 +109,4 @@ class NewsletterTest extends \PHPUnit_Framework_TestCase
$this->assertInstanceOf('Thelia\Model\Newsletter', $deletedNewsletter);
$this->assertTrue($deletedNewsletter->isDeleted());
}
}
}

View File

@@ -567,4 +567,4 @@ class OrderTest extends \PHPUnit_Framework_TestCase
$this->assertEquals('J', $newOrderAddress->getPhone());
$this->assertEquals('K', $newOrderAddress->getCompany());
}
}
}

View File

@@ -26,7 +26,6 @@ namespace Thelia\Tests\Action;
use Thelia\Action\Pdf;
use Thelia\Core\Event\PdfEvent;
/**
* Class PdfTest
* @package Thelia\Tests\Action
@@ -47,4 +46,4 @@ class PdfTest extends \PHPUnit_Framework_TestCase
$this->assertNotNull($generatedPdf);
}
}
}

View File

@@ -42,12 +42,10 @@ use Thelia\Model\ContentQuery;
use Thelia\Model\CurrencyQuery;
use Thelia\Model\ProductQuery;
use Thelia\Model\Product as ProductModel;
use Thelia\Model\TaxRule;
use Thelia\Model\TaxRuleQuery;
use Thelia\Model\TemplateQuery;
use Thelia\Tests\TestCaseWithURLToolSetup;
/**
* Class ProductTest
* @package Thelia\Tests\Action
@@ -114,7 +112,6 @@ class ProductTest extends TestCaseWithURLToolSetup
$productPrice = $defaultProductSaleElement->getProductPrices()->getFirst();
$this->assertEquals(10, $productPrice->getPrice());
$this->assertEquals($currencyId, $productPrice->getCurrencyId());
@@ -379,7 +376,6 @@ class ProductTest extends TestCaseWithURLToolSetup
$productPrice = $newProductSaleElements->getProductPrices()->getFirst();
$this->assertEquals(0, $productPrice->getPrice());
$this->assertEquals(0, $productPrice->getPromoPrice());
$this->assertEquals($currencyId, $productPrice->getCurrencyId());
@@ -405,4 +401,4 @@ class ProductTest extends TestCaseWithURLToolSetup
$this->assertTrue($deletedProduct->isDeleted());
}
}
}

View File

@@ -29,7 +29,6 @@ use Thelia\Model\Profile as ProfileModel;
use Thelia\Core\Event\Profile\ProfileEvent;
use Thelia\Model\ProfileQuery;
/**
* Class ProfileTest
* @package Thelia\Tests\Action
@@ -151,4 +150,4 @@ class ProfileTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($accessManager->can(AccessManager::CREATE));
}
}
}

View File

@@ -35,7 +35,7 @@ use Symfony\Component\Filesystem\Filesystem;
* @package Thelia\Tests\Command
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class CacheClearTest extends \PHPUnit_Framework_TestCase
class CacheClearTestSaved extends \PHPUnit_Framework_TestCase
{
public $cache_dir;

View File

@@ -2,8 +2,6 @@
namespace Thelia\Tests\Core\HttpFoundation;
/**
* the the helpers addinf in Request class
*

View File

@@ -33,7 +33,7 @@ use Thelia\Type\TypeCollection;
* @author Etienne Roudeix <eroudeix@openstudio.fr>
*
*/
class ArgumentTest extends \PHPUnit_Framework_TestCase
class ArgumentCollectionTest extends \PHPUnit_Framework_TestCase
{
public function testArgumentCollectionCreateAndWalk()
{

View File

@@ -32,7 +32,7 @@ use Thelia\Core\Template\Loop\ProductSaleElements;
* @author Etienne Roudeix <eroudeix@openstudio.fr>
*
*/
class ProductSaleElementsTest extends BaseLoopTestor
class ProductSaleElementTest extends BaseLoopTestor
{
public function getTestedClassName()
{

View File

@@ -63,8 +63,6 @@ class RemoveXPercentTest extends \PHPUnit_Framework_TestCase
->disableOriginalConstructor()
->getMock();
$currencies = CurrencyQuery::create()->find();
$stubFacade->expects($this->any())
->method('getAvailableCurrencies')

View File

@@ -39,7 +39,7 @@ use Thelia\Core\HttpFoundation\Session\Session;
* @package Thelia\Tests\Action
* @author Etienne Roudeix <eroudeix@openstudio.fr>
*/
class MessageTest extends \PHPUnit_Framework_TestCase
class Message extends \PHPUnit_Framework_TestCase
{
/**
* @var ContainerBuilder $container

View File

@@ -12,7 +12,6 @@ namespace Thelia\Tests\Tools;
use Thelia\Core\Event\Document\DocumentCreateOrUpdateEvent;
use Thelia\Core\Event\Image\ImageCreateOrUpdateEvent;
use Thelia\Model\CategoryQuery;
use Thelia\Model\ContentQuery;
use Thelia\Model\FolderQuery;

View File

@@ -31,7 +31,7 @@ use Thelia\Type\TypeCollection;
* @author Etienne Roudeix <eroudeix@openstudio.fr>
*
*/
class TypeTest extends \PHPUnit_Framework_TestCase
class TypeCollectionTest extends \PHPUnit_Framework_TestCase
{
public function testTypeCollectionConstruction()
{