dox Executable Documentation

Import google calendar

Authentication with google api

$this->markTestIncomplete();
Given the task 'gc' of type GoogleCalendarTask::$CLASS
Given the authentication url is 'http://auth.example.com'
Given I am not authenticated
Given the parameter 'from' is 'now'
Given the parameter 'until' is 'tomorrow'
When I call the resource 'schedule' with the method 'post'
Then the response status should be WebResponse::STATUS_UNAUTHORIZED
Then I should be redirected to 'http://auth.example.com'
Given the access token is 'some-token'
Given the parameter 'code' is 'some-code'
When I call the resource '' with the method 'authenticate'
Then I should be authenticated with 'some-code'
Then the session should contain 'token' with the value 'some-token'

Save token in session

$this->markTestIncomplete();
Given the session contains 'token' with the value 'my-token'
When I call the resource '' with the method 'get'
Then the acces token 'my-token' should be set

Read google calendar task

$this->markTestIncomplete();
Given the file 'root/some/task/__.txt' containing 'type: rtens\\xkdl\\task\\GoogleCalendar ' . 'clientId: mycliend-id ' . 'clientSecret: mysecret ' . 'developerKey: my-developer-key'
When I read the task 'some/task'

No calendars

$this->markTestIncomplete();

Create tasks for events

$this->markTestIncomplete();
Given the calendar 'My Calendar'
Given the event 'This event' in 'My Calendar' starting '2011-11-11 11:00' and ending '2011-11-11 12:00'
Given the event 'That event' in 'My Calendar' starting '2011-11-12 12:00' and ending '2011-11-11 13:00'
Given the calendar 'Other One'
Given the event 'This event' in 'Other One' starting '2011-11-11 12:00' and ending '2011-11-11 13:00'
Given the event 'That event' in 'Other One' starting '2011-11-12 14:00' and ending '2011-11-11 15:00'
Given the folder 'root/some/task/My Calendar/That event'
Given the file 'root/some/task/My Calendar/That event/logs.txt' containing '8:00 >> 9:00'

Load logs of event task

$this->markTestIncomplete();
Given the calendar 'My Calendar'
Given the event 'This event' in 'My Calendar' starting '2011-11-11 11:00' and ending '2011-11-11 12:00'
Given the folder 'root/some/task/My Calendar/That event'
Given the file 'root/some/task/My Calendar/That event/logs.txt' containing '8:00 >> 9:00'