Initial commit: Animexe Laravel platform

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-14 00:01:48 +03:00
co-authored by Claude Opus 4.8
commit a63515cfc6
366 changed files with 74773 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
namespace Tests\Feature;
// use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*/
public function test_the_application_returns_a_successful_response(): void
{
$response = $this->get('/');
$response->assertStatus(200);
}
}
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace Tests\Feature;
use App\Http\Controllers\MediaController;
use Illuminate\Support\Facades\Storage;
use Tests\TestCase;
class MediaControllerTest extends TestCase
{
public function test_media_controller_serves_public_disk_files(): void
{
$path = 'test-media/test-image.jpg';
Storage::disk('public')->put($path, 'fake-image');
try {
$response = app(MediaController::class)->show($path);
$this->assertSame(200, $response->getStatusCode());
$this->assertSame('fake-image', file_get_contents($response->getFile()->getPathname()));
} finally {
Storage::disk('public')->delete($path);
}
}
public function test_media_route_is_registered(): void
{
$route = app('router')->getRoutes()->getByName('media.show');
$this->assertNotNull($route);
$this->assertSame('media/{path}', $route->uri());
}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
//
}
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace Tests\Unit;
use PHPUnit\Framework\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*/
public function test_that_true_is_true(): void
{
$this->assertTrue(true);
}
}