Initial commit

This commit is contained in:
mahdi mansouri authored and GitHub committed 2025-09-26 13:17:10 +03:30
commit 8b9f0cd47a
32 files changed
+1111

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
<?php
arch('it will not use debugging functions')
->expect(['dd', 'dump', 'ray'])
->each->not->toBeUsed();
+5
View File
@@ -0,0 +1,5 @@
<?php
it('can test', function () {
expect(true)->toBeTrue();
});
+5
View File
@@ -0,0 +1,5 @@
<?php
use VendorName\Skeleton\Tests\TestCase;
uses(TestCase::class)->in(__DIR__);
+37
View File
@@ -0,0 +1,37 @@
<?php
namespace VendorName\Skeleton\Tests;
use Illuminate\Database\Eloquent\Factories\Factory;
use Orchestra\Testbench\TestCase as Orchestra;
use VendorName\Skeleton\SkeletonServiceProvider;
class TestCase extends Orchestra
{
protected function setUp(): void
{
parent::setUp();
Factory::guessFactoryNamesUsing(
fn (string $modelName) => 'VendorName\\Skeleton\\Database\\Factories\\'.class_basename($modelName).'Factory'
);
}
protected function getPackageProviders($app)
{
return [
SkeletonServiceProvider::class,
];
}
public function getEnvironmentSetUp($app)
{
config()->set('database.default', 'testing');
/*
foreach (\Illuminate\Support\Facades\File::allFiles(__DIR__ . '/database/migrations') as $migration) {
(include $migration->getRealPath())->up();
}
*/
}
}