Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit ede3f4c

Browse files
author
Holger Lösken
committed
Add first basic tests
1 parent f49db7e commit ede3f4c

8 files changed

Lines changed: 643 additions & 45 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
.phpunit.result.cache
2+
3+
coverage/
14
node_modules/
25
vendor/

composer.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "codedge/statamic-magiclink",
33
"description": "Create secure links for access to private data or Control Panel login without using a password",
44
"keywords": ["statamic", "auth", "login", "link", "magic link", "magiclink", "passwordless"],
5+
"type": "statamic-addon",
56
"license": "proprietary",
67
"authors": [
78
{
@@ -15,13 +16,15 @@
1516
"source": "https://github.com/codedge/statamic-magiclink"
1617
},
1718
"config": {
19+
"process-timeout": 0,
1820
"sort-packages": true
1921
},
2022
"require": {
2123
"php": "^7.4",
22-
"statamic/cms": "^3.0"
24+
"statamic/cms": "3.0.*"
2325
},
2426
"require-dev": {
27+
"orchestra/testbench": "^5.0",
2528
"phpunit/phpunit": "^8.5"
2629
},
2730
"autoload": {
@@ -31,9 +34,13 @@
3134
},
3235
"autoload-dev": {
3336
"psr-4": {
34-
"Codedge\\MagicLink\\Test\\": "tests"
37+
"Codedge\\MagicLink\\Tests\\": "tests"
3538
}
3639
},
40+
"scripts": {
41+
"test": "./vendor/bin/phpunit",
42+
"test-coverage": "./vendor/bin/phpunit --coverage-html coverage"
43+
},
3744
"extra": {
3845
"laravel": {
3946
"providers": [

0 commit comments

Comments
 (0)