tests/IntegrationTests/POData/UriProcessor/UriProcessorExecutionTest.php
/**
     * test uri processor executor with combination of all querystring options.
     */
test uri processor executor with combination of all querystring options.
test uri processor executor with combination of all querystring options .
public function testCombinationOfEntitySetWithSkipToken()
    {
        $serviceUri = 'http://localhost:8083/NorthWindDataService.svc/';
		$resourcePath = 'Customers(CustomerID=\'ALFKI\', CompanyName=\'Alfreds Futterkiste\')/Orders(10643)/Customer/Orders(10692)/Order_Details(OrderID=10692,ProductID=63)/Product/Order_Details(OrderID=10692,ProductID=63)/Order/Customer/Orders';
		$requestUri = $serviceUri . $resourcePath;
		$hostInfo = array('AbsoluteServiceUri' => new Url($serviceUri),
						  'AbsoluteRequestUri' => new Url($requestUri),
		                  'QueryString' => '$skiptoken=10835',
		                  'DataServiceVersion' => new Version(2, 0),
		                  'MaxDataServiceVersion' => new Version(2, 0));
		$host = new DataServiceHost1($hostInfo);
		$dataService = new NorthWindDataService1();
		$dataService->setHost($host);
		$queryProcessor = $dataService->handleRequest();
		$queryProcessor->execute();
		$result = $queryProcessor->getRequestDescription()->getLastSegmentDescriptor()->getResult();
		$this->assertTrue(is_array($result));
    }
public function testCombinationOfEntitySetWithSkipToken ( ) { $ serviceUri = 'http://localhost:8083/NorthWindDataService.svc/' ; $ resourcePath = 'Customers(CustomerID=\'ALFKI\', CompanyName=\'Alfreds Futterkiste\')/Orders(10643)/Customer/Orders(10692)/Order_Details(OrderID=10692,ProductID=63)/Product/Order_Details(OrderID=10692,ProductID=63)/Order/Customer/Orders' ; $ requestUri = $ serviceUri . $ resourcePath ; $ hostInfo = array ( 'AbsoluteServiceUri' => new Url ( $ serviceUri ) , 'AbsoluteRequestUri' => new Url ( $ requestUri ) , 'QueryString' => '$skiptoken=10835' , 'DataServiceVersion' => new Version ( 2 , 0 ) , 'MaxDataServiceVersion' => new Version ( 2 , 0 ) ) ; $ host = new DataServiceHost1 ( $ hostInfo ) ; $ dataService = new NorthWindDataService1 ( ) ; $ dataService -> setHost ( $ host ) ; $ queryProcessor = $ dataService -> handleRequest ( ) ; $ queryProcessor -> execute ( ) ; $ result = $ queryProcessor -> getRequestDescription ( ) -> getLastSegmentDescriptor ( ) -> getResult ( ) ; $ this -> assertTrue ( is_array ( $ result ) ) ; }
test uri processor executor with combination of all querystring options.
test uri processor executor with combination of all querystring options .