This commit is contained in:
2025-09-25 03:03:31 +05:00
commit ae480cf2f6
2768 changed files with 1485826 additions and 0 deletions

39
tests/TestCase.php Normal file
View File

@@ -0,0 +1,39 @@
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
/**
* Setup the test environment.
*/
protected function setUp(): void
{
parent::setUp();
}
/**
* Post with token
*/
public function _post()
{
return $this->withHeaders([
'accept' => 'application/json',
'api_token' => config('ecommerce.api.token'),
]);
}
/**
* Add header json
*/
public function asJson()
{
return $this->withHeaders([
'accept' => 'application/json',
]);
}
}