AppserverIo\Appserver\Core\Api\AbstractServiceTest::setUp PHP Method

setUp() public method

Initializes the service instance to test.
public setUp ( ) : null
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;
    }