Commit 0c6c818d authored by michael's avatar michael

24: Add sample hook from real data and use it in test

parent 44221d46
......@@ -38,15 +38,7 @@ class PublishControllerTest extends WebTestCase {
* @return string
*/
private function getGithubRequestBody(): string {
$body = [
'ref' => 'refs/heads/master',
'commits' => [],
'repository' => [
'html_url' => 'https://github.com/civicrm/civicrm-dev-docs',
],
];
return json_encode($body);
return file_get_contents(__DIR__ . '/../Files/webhook-push-sample.json');
}
/**
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment