GoogleSpreadsheet\Tests\Google\Spreadsheet\SpreadsheetServiceTest::testGetPublicSpreadsheet PHP Method

testGetPublicSpreadsheet() public method

    public function testGetPublicSpreadsheet()
    {
        $id = "1Jfgc77-TukPZf_HOXH";
        $url = "https://spreadsheets.google.com/feeds/worksheets/{$id}/public/full";
        $mockService = $this->getMockBuilder(SpreadsheetService::class)->setMethods(["getResourceById"])->getMock();
        $mockService->expects($this->once())->method("getResourceById")->with($this->equalTo(WorksheetFeed::class), $this->equalTo($url));
        $mockService->getPublicSpreadsheet($id);
    }