Пример #1
0
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->platform = new MockPlatform();
     if (!Type::hasType('brprice')) {
         Type::addType('brprice', 'AcploBase\\DBAL\\Types\\BrPriceType');
     }
     $this->BrPriceType = Type::getType('brprice');
 }
Пример #2
0
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->platform = new MockPlatform();
     if (!Type::hasType('brdatetime')) {
         Type::addType('brdatetime', 'AcploBase\\DBAL\\Types\\BrDateTimeType');
     }
     $this->BrDateTimeType = Type::getType('brdatetime');
     date_default_timezone_set('America/New_York');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new CrudController();
     $sm = new ServiceManagerTestCase();
     $this->controller->setServiceLocator($sm->getServiceManager());
     $pluginManager = $this->getMock('Zend\\Mvc\\Controller\\PluginManager', array('get'));
     $pluginManager->expects($this->any())->method('get')->will($this->returnCallback(array($this, 'helperMockCallbackPluginManagerGet')));
     $this->pluginManager = $pluginManager;
     $this->controller->setPluginManager($pluginManager);
 }
Пример #4
0
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     // TODO Auto-generated AbstractModuleTest::setUp()
     $this->AbstractModule = $this->getMockForAbstractClass('AcploBase\\Module\\AbstractModule');
 }
Пример #5
0
 protected function setUp()
 {
     parent::setUp();
     $this->entity = $this->getMockForAbstractClass('AcploBase\\Entity\\AbstractEntity');
 }