GoogleSpreadsheet\Tests\Google\Spreadsheet\ListEntryTest::testDelete PHP 메소드

testDelete() 공개 메소드

public testDelete ( )
    public function testDelete()
    {
        $mockServiceRequest = $this->getMockBuilder(DefaultServiceRequest::class)->setMethods(["delete"])->disableOriginalConstructor()->getMock();
        $mockServiceRequest->expects($this->once())->method("delete")->with($this->equalTo("https://spreadsheets.google.com/feeds/list/G3345eEsfsk60/od6/private/full/cokwr/bnkj8i7jo6c"));
        ServiceRequestFactory::setInstance($mockServiceRequest);
        $listFeed = new ListFeed($this->getSimpleXMLElement("list-feed"));
        $entry = current($listFeed->getEntries());
        $entry->delete();
    }