本文整理汇总了PHP中Aimeos\MShop\Factory::clear方法的典型用法代码示例。如果您正苦于以下问题:PHP Factory::clear方法的具体用法?PHP Factory::clear怎么用?PHP Factory::clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Aimeos\MShop\Factory
的用法示例。
在下文中一共展示了Factory::clear方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
protected function tearDown()
{
\Aimeos\MShop\Factory::clear();
\Aimeos\MShop\Factory::setCache(false);
\Aimeos\Controller\Frontend\Basket\Factory::createController($this->context)->clear();
unset($this->object);
}
示例2: tearDown
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*
* @access protected
*/
protected function tearDown()
{
\Aimeos\MShop\Factory::setCache(false);
\Aimeos\MShop\Factory::clear();
$this->object = null;
if (file_exists('tmp/import.zip')) {
unlink('tmp/import.zip');
}
}
示例3: testClearSpecific
public function testClearSpecific()
{
$cache = \Aimeos\MShop\Factory::setCache(true);
$context = \TestHelperMShop::getContext();
$managerA1 = \Aimeos\MShop\Factory::createManager($context, 'attribute');
$managerB1 = \Aimeos\MShop\Factory::createManager($context, 'attribute/lists/type');
\Aimeos\MShop\Factory::clear((string) $context, 'attribute');
$managerA2 = \Aimeos\MShop\Factory::createManager($context, 'attribute');
$managerB2 = \Aimeos\MShop\Factory::createManager($context, 'attribute/lists/type');
\Aimeos\MShop\Factory::setCache($cache);
$this->assertNotSame($managerA1, $managerA2);
$this->assertSame($managerB1, $managerB2);
}
示例4: tearDown
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*
* @access protected
*/
protected function tearDown()
{
unset($this->object);
\Aimeos\Controller\Frontend\Factory::clear();
\Aimeos\MShop\Factory::clear();
}
示例5: tearDown
protected function tearDown()
{
\Aimeos\MShop\Factory::clear();
}
示例6: tearDown
protected function tearDown()
{
\Aimeos\MShop\Factory::setCache(false);
\Aimeos\MShop\Factory::clear();
}
示例7: tearDown
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*
* @access protected
*/
protected function tearDown()
{
\Aimeos\MShop\Factory::setCache(false);
\Aimeos\MShop\Factory::clear();
$this->object = null;
}
示例8: tearDown
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*
* @access protected
*/
protected function tearDown()
{
$this->object = null;
\Aimeos\Controller\ExtJS\Factory::clear();
\Aimeos\MShop\Factory::clear();
}
示例9: tearDown
public function tearDown()
{
\Aimeos\MShop\Factory::clear();
}