-
Notifications
You must be signed in to change notification settings - Fork 3
Webhooks #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webhooks #20
Conversation
src/Resource/Sync/WebHook.php
Outdated
{ | ||
public function refresh(): WebHook | ||
{ | ||
return $this->wait($this->handleCommand(new BuildAsyncFromSyncCommand(self::HYDRATE_CLASS, $this))->then(function (WebHookInterface $webHook) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line exceeds 120 characters; contains 151 characters
src/Resource/Sync/WebHook/Config.php
Outdated
{ | ||
public function refresh(): Config | ||
{ | ||
return $this->wait($this->handleCommand(new BuildAsyncFromSyncCommand(self::HYDRATE_CLASS, $this))->then(function (ConfigInterface $config) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line exceeds 120 characters; contains 149 characters
$resource = $this->prophesize(ResourceInterface::class)->reveal(); | ||
|
||
$service = $this->prophesize(IteratePagesService::class); | ||
$service->iterate('prefix/foo/bar/hooks')->shouldBeCalled()->willReturn(Observable::fromArray([[['php-api-clients']]])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line exceeds 120 characters; contains 128 characters
$service->iterate('prefix/foo/bar/hooks')->shouldBeCalled()->willReturn(Observable::fromArray([[['php-api-clients']]])); | ||
|
||
$hydrator = $this->prophesize(Hydrator::class); | ||
$hydrator->hydrate(WebHookInterface::HYDRATE_CLASS, ['php-api-clients'])->shouldBeCalled()->willReturn($resource); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line exceeds 120 characters; contains 122 characters
# Conflicts: # src/Resource/Async/Repository.php
Uh oh!
There was an error while loading. Please reload this page.