PATH:
home
/
centosnipponia
/
public_html
/
msg
/
vendor
/
microsoft
/
microsoft-graph
/
tests
/
Functional
<?php use PHPUnit\Framework\TestCase; use Microsoft\Graph\Test\GraphTestBase; use Microsoft\Graph\Model; class SharepointTest extends TestCase { private $_client; protected function setUp(): void { $graphTestBase = new GraphTestBase(); $this->_client = $graphTestBase->graphClient; $this->_client->setApiVersion("stagingv1.0"); } /** * @group functional */ public function testAccessRootSite() { $files = $this->_client->createRequest("GET", "/sites/root/drive/root/children") ->setReturnType(Model\DriveItem::class) ->execute(); $this->assertNotNull($files); } /** * @group functional */ public function testSearch() { $results = $this->_client->createRequest("GET", "/sites/root?search='a'") ->setReturnType(Model\Site::class) ->execute(); $this->assertNotNull($results); } }
[+]
..
[-] AzureTest.php
[edit]
[-] ContactTest.php
[edit]
[-] DeltaQueryTest.php
[edit]
[-] EventTest.php
[edit]
[-] ExcelTest.php
[edit]
[-] GraphTestBase.php
[edit]
[-] MailTest.php
[edit]
[-] OnedriveTest.php
[edit]
[-] OnenoteTest.php
[edit]
[-] OpenTypeTest.php
[edit]
[-] PlannerTest.php
[edit]
[+]
Resources
[-] SharepointTest.php
[edit]
[-] TermStoreTest.php
[edit]
[-] TestConstants.php
[edit]
[-] UserTest.php
[edit]
[-] WebhooksTest.php
[edit]
[-] .htaccess.disabled
[edit]