chore: add Pest v3 testing infrastructure with Orchestra Testbench

This commit is contained in:
Joel Male
2026-04-11 08:13:36 +10:00
parent db8871110a
commit d694586a65
5 changed files with 8437 additions and 196 deletions
+44 -27
View File
@@ -1,30 +1,47 @@
{ {
"name": "wearepixel/laravel-google-shopping-feed", "name": "wearepixel/laravel-google-shopping-feed",
"type": "library", "type": "library",
"description": "Laravel Google Shopping Feed", "description": "Laravel Google Shopping Feed",
"keywords": [ "keywords": [
"laravel", "laravel",
"google-shopping-feed" "google-shopping-feed"
], ],
"version": "5.0.0", "version": "5.0.0",
"homepage": "https://github.com/wearepixel/laravel-google-shopping-feed", "homepage": "https://github.com/wearepixel/laravel-google-shopping-feed",
"license": "MIT", "license": "MIT",
"authors": [ "authors": [
{ {
"name": "Pixel", "name": "Pixel",
"email": "hello@wearepixel.com.au" "email": "hello@wearepixel.com.au"
}
],
"autoload": {
"psr-4": { "Wearepixel\\LaravelGoogleShoppingFeed\\" : "src/" }
},
"require": {
"php": ">=8.3",
"spatie/array-to-xml": "2.8.*|3.*",
"illuminate/support": "10.*|11.*|12.*"
},
"prefer-stable": true,
"require-dev": {
"laravel/pint": "^1.26"
} }
],
"autoload": {
"psr-4": {
"Wearepixel\\LaravelGoogleShoppingFeed\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"require": {
"php": ">=8.3",
"spatie/array-to-xml": "2.8.*|3.*",
"illuminate/support": "10.*|11.*|12.*|13.*"
},
"prefer-stable": true,
"require-dev": {
"laravel/pint": "^1.29",
"pestphp/pest": "^3.0",
"orchestra/testbench": "^10.0"
},
"scripts": {
"test": "vendor/bin/pest"
},
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
}
}
} }
Generated
+8367 -169
View File
File diff suppressed because it is too large Load Diff
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Unit">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
+5
View File
@@ -0,0 +1,5 @@
<?php
declare(strict_types=1);
uses(Tests\TestCase::class)->in('.');
+9
View File
@@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace Tests;
use Orchestra\Testbench\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase {}