当前位置: 首页>>代码示例>>PHP>>正文


PHP TestHelper::getArcavias方法代码示例

本文整理汇总了PHP中TestHelper::getArcavias方法的典型用法代码示例。如果您正苦于以下问题:PHP TestHelper::getArcavias方法的具体用法?PHP TestHelper::getArcavias怎么用?PHP TestHelper::getArcavias使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TestHelper的用法示例。


在下文中一共展示了TestHelper::getArcavias方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: testFactoryExceptionWrongInterface

 public function testFactoryExceptionWrongInterface()
 {
     $context = TestHelper::getContext();
     $arcavias = TestHelper::getArcavias();
     $this->setExpectedException('Controller_Jobs_Exception');
     Controller_Jobs_Order_Cleanup_Unfinished_Factory::createController($context, $arcavias, 'Factory');
 }
开发者ID:arcavias,项目名称:arcavias-core,代码行数:7,代码来源:FactoryTest.php

示例2: testFactoryExceptionWrongInterface

 public function testFactoryExceptionWrongInterface()
 {
     $context = TestHelper::getContext();
     $arcavias = TestHelper::getArcavias();
     $this->setExpectedException('Controller_Jobs_Exception');
     $object = Controller_Jobs_Product_Import_Csv_Factory::createController($context, $arcavias, 'Factory');
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:7,代码来源:FactoryTest.php

示例3: testFactoryExceptionWrongInterface

 public function testFactoryExceptionWrongInterface()
 {
     $context = TestHelper::getContext();
     $arcavias = TestHelper::getArcavias();
     $this->setExpectedException('Controller_Jobs_Exception');
     Controller_Jobs_Customer_Email_Watch_Factory::createController($context, $arcavias, 'Factory');
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:7,代码来源:FactoryTest.php

示例4: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     MShop_Factory::setCache(true);
     $this->_context = TestHelper::getContext();
     $this->_arcavias = TestHelper::getArcavias();
     $this->_object = new Controller_Jobs_Product_Bought_Default($this->_context, $this->_arcavias);
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:13,代码来源:DefaultTest.php

示例5: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $context = TestHelper::getContext();
     $arcavias = TestHelper::getArcavias();
     $this->_stub = $this->getMockBuilder('Controller_Jobs_Admin_Job_Default')->setConstructorArgs(array($context, $arcavias))->getMock();
     $this->_object = new Controller_Jobs_Common_Decorator_AbstractImpl($context, $arcavias, $this->_stub);
 }
开发者ID:arcavias,项目名称:arcavias-core,代码行数:13,代码来源:AbstractTest.php

示例6: setUp

 protected function setUp()
 {
     MShop_Factory::setCache(true);
     $context = TestHelper::getContext();
     $arcavias = TestHelper::getArcavias();
     $this->_object = new Controller_Common_Product_Import_Csv_TestAbstract($context, $arcavias);
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:7,代码来源:AbstractTest.php

示例7: testFactoryExceptionWrongInterface

 public function testFactoryExceptionWrongInterface()
 {
     $context = TestHelper::getContext();
     $arcavias = TestHelper::getArcavias();
     $this->setExpectedException('Controller_Jobs_Exception');
     Controller_Jobs_Catalog_Index_Rebuild_Factory::createController($context, $arcavias, 'Factory');
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:7,代码来源:FactoryTest.php

示例8: testImport

 public function testImport()
 {
     $arcavias = TestHelper::getArcavias();
     $cntl = Controller_Jobs_Product_Import_Csv_Factory::createController($this->_context, $arcavias, 'Default');
     $start = microtime(true);
     $cntl->run();
     $stop = microtime(true);
     echo "\n    product import CSV: " . ($stop - $start) . " sec\n";
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:9,代码来源:DefaultTest.php

示例9: testRun

 public function testRun()
 {
     $context = TestHelper::getContext();
     $arcavias = TestHelper::getArcavias();
     $stub = $this->getMockBuilder('Controller_Jobs_Product_Suggestions_Default')->setConstructorArgs(array($this->_context, $this->_arcavias))->setMethods(array('_createProductListSuggestions', '_removeProductSuggestions'))->getMock();
     $stub->expects($this->exactly(10))->method('_createProductListSuggestions')->with($this->greaterThan(0), $this->anything(), $this->equalTo($this->_getProductListTypeId()), $this->isInstanceOf('MShop_Common_Manager_Abstract'));
     $stub->expects($this->exactly(10))->method('_removeProductSuggestions');
     $stub->run();
 }
开发者ID:arcavias,项目名称:arcavias-core,代码行数:9,代码来源:DefaultTest.php

示例10: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     $this->_arcavias = TestHelper::getArcavias();
     $this->_context = TestHelper::getContext();
     $config = $this->_context->getConfig();
     $config->set('controller/jobs/common/decorators/default', array());
     $config->set('controller/jobs/admin/decorators/global', array());
     $config->set('controller/jobs/admin/decorators/local', array());
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:15,代码来源:AbstractTest.php

示例11: setUp

 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     MShop_Factory::setCache(true);
     $this->_context = TestHelper::getContext();
     $this->_arcavias = TestHelper::getArcavias();
     $config = $this->_context->getConfig();
     $config->set('controller/jobs/product/import/csv/skip-lines', 1);
     $config->set('controller/jobs/product/import/csv/location', __DIR__ . '/_testfiles/valid');
     $this->_object = new Controller_Jobs_Product_Import_Csv_Default($this->_context, $this->_arcavias);
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:16,代码来源:DefaultTest.php

示例12: testGetControllers

 public function testGetControllers()
 {
     $context = TestHelper::getContext();
     $arcavias = TestHelper::getArcavias();
     $list = Controller_Jobs_Factory::getControllers($context, $arcavias, TestHelper::getControllerPaths());
     $this->assertGreaterThan(0, count($list));
     foreach ($list as $key => $object) {
         $this->assertInstanceOf('Controller_Jobs_Interface', $object);
     }
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:10,代码来源:FactoryTest.php

示例13: testRun

 public function testRun()
 {
     $context = TestHelper::getContext();
     $arcavias = TestHelper::getArcavias();
     $name = 'ControllerJobsCatalogIndexOptimizeDefaultRun';
     $context->getConfig()->set('classes/catalog/manager/name', $name);
     $catalogManagerStub = $this->getMockBuilder('MShop_Catalog_Manager_Default')->setMethods(array('getSubManager'))->setConstructorArgs(array($context))->getMock();
     $catalogIndexManagerStub = $this->getMockBuilder('MShop_Catalog_Manager_Index_Default')->setMethods(array('optimize'))->setConstructorArgs(array($context))->getMock();
     MShop_Catalog_Manager_Factory::injectManager('MShop_Catalog_Manager_' . $name, $catalogManagerStub);
     $catalogManagerStub->expects($this->once())->method('getSubManager')->will($this->returnValue($catalogIndexManagerStub));
     $catalogIndexManagerStub->expects($this->once())->method('optimize');
     $object = new Controller_Jobs_Catalog_Index_Optimize_Default($context, $arcavias);
     $object->run();
 }
开发者ID:arcavias,项目名称:arcavias-core,代码行数:14,代码来源:DefaultTest.php

示例14: testRunInvalidMethod

 /**
  * @dataProvider methodProvider
  */
 public function testRunInvalidMethod($method)
 {
     $context = TestHelper::getContext();
     $arcavias = TestHelper::getArcavias();
     $name = 'ControllerJobsAdminJobDefaultRun';
     $context->getConfig()->set('classes/job/manager/name', $name);
     $object = new Controller_Jobs_Admin_Job_Default($context, $arcavias);
     MAdmin_Job_Manager_Factory::injectManager('MAdmin_Job_Manager_' . $name, $this->_jobManagerStub);
     $this->_jobManagerStub->expects($this->atLeastOnce())->method('searchItems')->will($this->onConsecutiveCalls(array($this->_jobItemStub), array()));
     $this->_jobManagerStub->expects($this->once())->method('saveItem');
     $this->_jobItemStub->expects($this->atLeastOnce())->method('getMethod')->will($this->returnValue($method));
     $this->_jobItemStub->expects($this->once())->method('setStatus')->with($this->equalTo(0));
     $object->run();
 }
开发者ID:Bananamoon,项目名称:aimeos-core,代码行数:17,代码来源:DefaultTest.php

示例15: testRunExceptionProcess

 public function testRunExceptionProcess()
 {
     $context = TestHelper::getContext();
     $arcavias = TestHelper::getArcavias();
     $name = 'ControllerJobsServiceAsyncProcessDefaultRun';
     $context->getConfig()->set('classes/service/manager/name', $name);
     $serviceManagerStub = $this->getMockBuilder('MShop_Service_Manager_Default')->setMethods(array('getProvider', 'searchItems'))->setConstructorArgs(array($context))->getMock();
     MShop_Service_Manager_Factory::injectManager('MShop_Service_Manager_' . $name, $serviceManagerStub);
     $serviceItem = $serviceManagerStub->createItem();
     $serviceManagerStub->expects($this->once())->method('searchItems')->will($this->onConsecutiveCalls(array($serviceItem), array()));
     $serviceManagerStub->expects($this->once())->method('getProvider')->will($this->throwException(new MShop_Service_Exception()));
     $object = new Controller_Jobs_Order_Service_Async_Default($context, $arcavias);
     $object->run();
 }
开发者ID:arcavias,项目名称:arcavias-core,代码行数:14,代码来源:DefaultTest.php


注:本文中的TestHelper::getArcavias方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。