git apply
le patch du dessus- run
vendor/bin/phpunit --filter EnricherFacebookLead
Last active
December 17, 2018 08:59
-
-
Save chalasr/822e168c97a95f529e14f308b5c3ced8 to your computer and use it in GitHub Desktop.
patch testing webhook ap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/config/services_test.yaml b/app/config/services_test.yaml | |
index f8b3a96..95a408c 100644 | |
--- a/app/config/services_test.yaml | |
+++ b/app/config/services_test.yaml | |
@@ -10,6 +10,3 @@ services: | |
App\Infra\Tracking\Repository\FormConfigRepository: ~ | |
App\Infra\Webhook\Repository\WebhookConfigRepository: ~ | |
- | |
- Aws\Sqs\SqsClient: | |
- class: 'App\Infra\Webhook\Test\TestSqsClient' | |
diff --git a/app/tests/fixtures/facebook_lead_webhook_configs.php b/app/tests/fixtures/facebook_lead_webhook_configs.php | |
index 23caf9f..8e12dda 100644 | |
--- a/app/tests/fixtures/facebook_lead_webhook_configs.php | |
+++ b/app/tests/fixtures/facebook_lead_webhook_configs.php | |
@@ -9,8 +9,8 @@ return [ | |
'__construct' => [ | |
'id' => 'naturhouse-wintzen-withErpShopId', | |
'payloadType' => 'standard', | |
- 'payloadUrl' => 'wintzenheim-url', | |
- 'secret' => 'secret', | |
+ 'payloadUrl' => 'https://geopayload.requestcatcher.com/test-enriched-fb-lead', | |
+ 'secret' => \ParagonIE\Halite\Symmetric\Crypto::encrypt(new \ParagonIE\Halite\HiddenString('test-secret'), \ParagonIE\Halite\KeyFactory::loadEncryptionKey(__DIR__.'/../../config/dev/crypto/key.txt')), | |
'leadTypes' => [WebhookLeadType::FACEBOOK_FORM, WebhookLeadType::INSTAGRAM_FORM], | |
'erpShopIds' => ['10979'], | |
'franchiseIds' => [], | |
@@ -21,7 +21,7 @@ return [ | |
'id' => 'naturhouse-wintzen-withFranchiseId', | |
'payloadType' => 'standard', | |
'payloadUrl' => 'wintzenheim-url', | |
- 'secret' => 'secret', | |
+ 'secret' => \ParagonIE\Halite\Symmetric\Crypto::encrypt(new \ParagonIE\Halite\HiddenString('test-secret'), \ParagonIE\Halite\KeyFactory::loadEncryptionKey(__DIR__.'/../../config/dev/crypto/key.txt')), | |
'leadTypes' => [WebhookLeadType::FACEBOOK_FORM, WebhookLeadType::INSTAGRAM_FORM], | |
'erpShopIds' => [], | |
'franchiseIds' => ['10979franchiseId'], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment