tests/UnitTests/POData/UriProcessor/UriProcessorTest.php
/**
     * Paging is enabled only for resource set, so with resource set
     * reference there will not be any paginginfo.
     */
Paging is enabled only for resource set, so with resource set
reference there will not be any paginginfo.
Paging is enabled only for resource set so with resource set reference there will not be any paginginfo .
public function testUriProcessorForResourcePageInfo3()
    {
        $hostInfo = array(
            'AbsoluteRequestUri' => new Url('http://localhost:8083/NorthWindDataService.svc/Orders(123)'),
            'AbsoluteServiceUri' => new Url('http://localhost:8083/NorthWindDataService.svc'),
            'QueryString' => null,
            'DataServiceVersion' => new Version(1, 0),
            'MaxDataServiceVersion' => new Version(2, 0),
        );
        $host = new ServiceHostTestFake($hostInfo);
        $dataService = new NorthWindService2();
        $dataService->setHost($host);
        $uriProcessor = $dataService->handleRequest();
        $requestDescription = $uriProcessor->getRequest();
        $this->assertNotNull($requestDescription);
        $this->assertNull($requestDescription->getTopCount());
        $internalOrderByInfo = $requestDescription->getInternalOrderByInfo();
        $this->assertNull($internalOrderByInfo);
    }
public function testUriProcessorForResourcePageInfo3 ( ) { $ hostInfo = array ( 'AbsoluteRequestUri' => new Url ( 'http://localhost:8083/NorthWindDataService.svc/Orders(123)' ) , 'AbsoluteServiceUri' => new Url ( 'http://localhost:8083/NorthWindDataService.svc' ) , 'QueryString' => null , 'DataServiceVersion' => new Version ( 1 , 0 ) , 'MaxDataServiceVersion' => new Version ( 2 , 0 ) , ) ; $ host = new ServiceHostTestFake ( $ hostInfo ) ; $ dataService = new NorthWindService2 ( ) ; $ dataService -> setHost ( $ host ) ; $ uriProcessor = $ dataService -> handleRequest ( ) ; $ requestDescription = $ uriProcessor -> getRequest ( ) ; $ this -> assertNotNull ( $ requestDescription ) ; $ this -> assertNull ( $ requestDescription -> getTopCount ( ) ) ; $ internalOrderByInfo = $ requestDescription -> getInternalOrderByInfo ( ) ; $ this -> assertNull ( $ internalOrderByInfo ) ; }
Paging is enabled only for resource set, so with resource set
 reference there will not be any paginginfo.
Paging is enabled only for resource set so with resource set reference there will not be any paginginfo .
//Test for generation of orderinfo for resource set //with request DataServiceVersion 1.0 //Page is not applicable for single resource //order info wont be generated as resource is not applicable for pagination