Example #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', 'LosBase\\DBAL\\Types\\BrPriceType');
     }
     $this->BrPriceType = Type::getType('brprice');
 }
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->platform = new MockPlatform();
     if (!Type::hasType('utcdatetime')) {
         Type::addType('utcdatetime', 'LosBase\\DBAL\\Types\\UtcDateTimeType');
     }
     $this->UtcDateTimeType = Type::getType('utcdatetime');
     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);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->entity = $this->getMockForAbstractClass('LosBase\\Entity\\AbstractEntity');
 }
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     // TODO Auto-generated AbstractModuleTest::setUp()
     $this->AbstractModule = $this->getMockForAbstractClass('LosBase\\Module\\AbstractModule');
 }