tests/UnitTests/POData/UriProcessor/UriProcessorTest.php
/**
     * $inlinecount can be applied to $links identifying resource set     
     */
$inlinecount can be applied to $links identifying resource set
$inlinecount can be applied to $links identifying resource set
public function testUriProcessorForLinksResourceSet5()
    {
        $baseUri = 'http://localhost:8083/NorthWindDataService.svc/';
        $resourcePath = 'Customers(CustomerID=\'ALFKI\', CustomerGuid=guid\'05b242e752eb46bd8f0e6568b72cd9a5\')/$links/Orders';
        $hostInfo = array(
            'AbsoluteRequestUri' => new Url($baseUri . $resourcePath),
            'AbsoluteServiceUri' => new Url($baseUri),
            'QueryString' => '$inlinecount=allpages',
            'DataServiceVersion' => new Version(2, 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->assertFalse($requestDescription->isSingleResult());
        $this->assertEquals($requestDescription->getTopCount(), 5);
        $internalOrderByInfo = $requestDescription->getInternalOrderByInfo();
        $this->assertNotNull($internalOrderByInfo);
	    $this->assertEquals(QueryType::ENTITIES_WITH_COUNT(), $requestDescription->queryType);
    }
public function testUriProcessorForLinksResourceSet5 ( ) { $ baseUri = 'http://localhost:8083/NorthWindDataService.svc/' ; $ resourcePath = 'Customers(CustomerID=\'ALFKI\', CustomerGuid=guid\'05b242e752eb46bd8f0e6568b72cd9a5\')/$links/Orders' ; $ hostInfo = array ( 'AbsoluteRequestUri' => new Url ( $ baseUri . $ resourcePath ) , 'AbsoluteServiceUri' => new Url ( $ baseUri ) , 'QueryString' => '$inlinecount=allpages' , 'DataServiceVersion' => new Version ( 2 , 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 -> assertFalse ( $ requestDescription -> isSingleResult ( ) ) ; $ this -> assertEquals ( $ requestDescription -> getTopCount ( ) , 5 ) ; $ internalOrderByInfo = $ requestDescription -> getInternalOrderByInfo ( ) ; $ this -> assertNotNull ( $ internalOrderByInfo ) ; $ this -> assertEquals ( QueryType :: ENTITIES_WITH_COUNT ( ) , $ requestDescription -> queryType ) ; }
$inlinecount can be applied to $links identifying resource set
$inlinecount can be applied to $links identifying resource set
//paging enabled