GoogleSpreadsheet\Tests\Google\Spreadsheet\WorksheetTest::testGetCellFeed PHP Метод

testGetCellFeed() публичный Метод

public testGetCellFeed ( )
    public function testGetCellFeed()
    {
        $feedUrl = "https://spreadsheets.google.com/feeds/cells/tA3TdJ0RIVEem3xQZhG2Ceg/od8/private/full";
        $mockServiceRequest = $this->getMockBuilder(DefaultServiceRequest::class)->setMethods(["get"])->disableOriginalConstructor()->getMock();
        $mockServiceRequest->expects($this->once())->method("get")->with($this->equalTo($feedUrl))->willReturn(file_get_contents(__DIR__ . "/xml/cell-feed.xml"));
        ServiceRequestFactory::setInstance($mockServiceRequest);
        $this->assertTrue($this->worksheet->getCellFeed() instanceof CellFeed);
    }