From 94a0963f574c5f88f5dba291a3cb9e0c3d2fb6ed Mon Sep 17 00:00:00 2001
From: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
Date: Sat, 20 Jan 2024 00:44:06 +0000
Subject: [PATCH] Refactor
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
---
composer.json | 128 ++++++++++++++-------------
phpunit.xml.dist | 1 +
src/Models/Outgoing.php | 2 +-
tests/Pest.php | 2 +
tests/WebhookEvents/CategoryTest.php | 31 +++++++
tests/WebhookTest.php | 2 -
tests/webhookevents/CategoryTest.php | 23 -----
7 files changed, 102 insertions(+), 87 deletions(-)
create mode 100644 tests/WebhookEvents/CategoryTest.php
delete mode 100644 tests/webhookevents/CategoryTest.php
diff --git a/composer.json b/composer.json
index 332ce29..102c091 100644
--- a/composer.json
+++ b/composer.json
@@ -1,64 +1,70 @@
{
- "name": "igniterlabs/ti-ext-webhook",
- "type": "tastyigniter-package",
- "description": "Connect your third party apps via Zapier or other third-party services to your TastyIgniter website.",
- "license": "MIT",
- "authors": [
- {
- "name": "Igniter Labs Team",
- "email": "hello@igniterlabs.co.uk"
- }
- ],
- "require-dev": {
- "laravel/pint": "^1.2",
- "nunomaduro/larastan": "^2.4.0",
- "orchestra/testbench": "^8.5",
- "pestphp/pest-plugin-laravel": "^2.0",
- "tastyigniter/core": "dev-master",
- "tastyigniter/ti-ext-api": "v4.x-dev as 4.0",
- "tastyigniter/ti-ext-automation": "v4.x-dev as 4.0"
+ "name": "igniterlabs/ti-ext-webhook",
+ "type": "tastyigniter-package",
+ "description": "Connect your third party apps via Zapier or other third-party services to your TastyIgniter website.",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Igniter Labs Team",
+ "email": "hello@igniterlabs.co.uk"
+ }
+ ],
+ "repositories": [
+ {
+ "type": "path",
+ "url": "../../../core/"
+ }
+ ],
+ "require-dev": {
+ "laravel/pint": "^1.2",
+ "nunomaduro/larastan": "^2.4.0",
+ "sampoyigi/testbench": "dev-main as 1.0",
+ "pestphp/pest-plugin-laravel": "^2.0",
+ "tastyigniter/core": "*@dev",
+ "tastyigniter/ti-ext-api": "v4.x-dev as 4.0",
+ "tastyigniter/ti-ext-automation": "v4.x-dev as 4.0"
+ },
+ "autoload": {
+ "psr-4": {
+ "IgniterLabs\\Webhook\\": "src/"
+ }
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "IgniterLabs\\Webhook\\Tests\\": "tests/"
+ }
+ },
+ "extra": {
+ "tastyigniter-extension": {
+ "code": "igniterlabs.webhook",
+ "name": "Webhooks",
+ "icon": {
+ "image": "icon.svg",
+ "backgroundColor": "#147EFB",
+ "color": "#FFF"
+ },
+ "require": {
+ "igniter.cart": "*",
+ "igniter.local": "*",
+ "igniter.user": "*",
+ "igniter.reservation": "*"
+ },
+ "homepage": "https://tastyigniter.com/marketplace/item/igniterlabs-webhook"
+ }
+ },
+ "scripts": {
+ "test": "vendor/bin/pest",
+ "test-coverage": "vendor/bin/pest --coverage",
+ "format": "vendor/bin/pint",
+ "static": "vendor/bin/phpstan analyse --ansi --memory-limit 1056M"
+ },
+ "config": {
+ "allow-plugins": {
+ "pestphp/pest-plugin": true,
+ "php-http/discovery": true,
+ "composer/installers": true
},
- "autoload": {
- "psr-4": {
- "IgniterLabs\\Webhook\\": "src/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "IgniterLabs\\Webhook\\Tests\\": "tests/"
- }
- },
- "extra": {
- "tastyigniter-extension": {
- "code": "igniterlabs.webhook",
- "name": "Webhooks",
- "icon": {
- "image": "icon.svg",
- "backgroundColor": "#147EFB",
- "color": "#FFF"
- },
- "require": {
- "igniter.cart": "*",
- "igniter.local": "*",
- "igniter.user": "*",
- "igniter.reservation": "*"
- },
- "homepage": "https://tastyigniter.com/marketplace/item/igniterlabs-webhook"
- }
- },
- "scripts": {
- "test": "vendor/bin/pest",
- "test-coverage": "vendor/bin/pest --coverage",
- "format": "vendor/bin/pint",
- "static": "vendor/bin/phpstan analyse --ansi --memory-limit 1056M"
- },
- "config": {
- "allow-plugins": {
- "pestphp/pest-plugin": true,
- "php-http/discovery": true,
- "composer/installers": true
- },
- "sort-packages": true
- },
- "minimum-stability": "dev"
+ "sort-packages": true
+ },
+ "minimum-stability": "dev"
}
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 1414b2f..45a69c9 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -12,6 +12,7 @@
+