Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

Commit b648c78

Browse files
author
M.D
committed
Set up initial testing framework and configuration
Signed-off-by: M.D <kontakt@dicksfactor.de>
1 parent 4b9a32b commit b648c78

File tree

6 files changed

+27
-28
lines changed

6 files changed

+27
-28
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,6 @@ jobs:
2424
- name: Install Composer
2525
run: sudo apt-get update && sudo apt-get install -y composer
2626

27-
- name: Clone test project
28-
run: git clone https://github.com/dissto/filament-tests-test-project.git test-project
29-
30-
- name: Install test project dependencies
31-
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction
32-
working-directory: ./test-project
33-
34-
- name: Copy .env file
35-
run: cp .env.example .env || touch .env
36-
working-directory: ./test-project
37-
38-
- name: Generate application key
39-
run: php artisan key:generate
40-
working-directory: ./test-project
41-
42-
- name: Configure database
43-
run: |
44-
php artisan config:clear
45-
php artisan config:cache
46-
touch database/database.sqlite
47-
working-directory: ./test-project
48-
49-
- name: Run migrations
50-
run: |
51-
php artisan migrate --force
52-
php artisan db:seed
53-
working-directory: ./test-project
54-
5527
- name: Run tests
5628
run: ./vendor/bin/pest
5729
working-directory: ./test-project

tests/Feature/.gitkeep

Whitespace-only changes.

tests/Feature/ArchTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
arch('No file in the app directory uses `die`, `dd`, or `dump`.')
6+
->expect('App')
7+
->not->toUse(['die', 'dd', 'dump', 'ray']);

tests/Pestp.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use CodeWithDennis\FilamentTests\Tests\TestCase;
6+
7+
uses(
8+
TestCase::class,
9+
// Illuminate\Foundation\Testing\RefreshDatabase::class,
10+
)->in('Feature', 'Unit');

tests/TestCase.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace CodeWithDennis\FilamentTests\Tests;
4+
5+
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
6+
7+
abstract class TestCase extends BaseTestCase
8+
{
9+
//
10+
}

tests/Unit/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)