/** * Initializes the service instance to test. * * @return null */ public function setUp() { parent::setUp(); // create a basic mock for our abstract service class $service = $this->getMockBuilder('\\AppserverIo\\Appserver\\Core\\Api\\AbstractService')->setMethods(array('findAll', 'load'))->setConstructorArgs(array(new MockInitialContext($this->getAppserverNode())))->getMockForAbstractClass(); $service->expects($this->any())->method('findAll')->will($this->returnValue(array())); $service->expects($this->any())->method('load')->will($this->returnValue(null)); $this->service = $service; }
/** * Initializes the service instance to test. * * @return void */ public function setUp() { parent::setUp(); $this->service = new DatasourceService($this->getMockInitialContext()); }
/** * Initializes the service instance to test. * * @return null */ public function setUp() { parent::setUp(); $this->appService = new AppService($this->getMockInitialContext()); }