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 EventTest extends TestCase { /** * @group functional */ public function testGetCalendarView() { $graphTestBase = new GraphTestBase(); $client = $graphTestBase->graphClient; $startTime = new DateTime('today midnight'); $startTime = $startTime->format('Y-m-d H:i:s'); $endTime = new DateTime('tomorrow midnight'); $endTime = $endTime->format('Y-m-d H:i:s'); $todaysEvents = $client->createRequest("GET", "/me/calendarView?startDateTime=$startTime&endDateTime=$endTime") ->setReturnType(Model\Event::class) ->execute(); $this->assertNotNull($todaysEvents); } }
[+]
..
[-] 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]