mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
Laravel 11 (#84)
* Convert string references to `::class` PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP. * Use Faker methods Accessing Faker properties was deprecated in Faker 1.14. * Convert route options to fluent methods Laravel 8 adopts the tuple syntax for controller actions. Since the old options array is incompatible with this syntax, Shift converted them to use modern, fluent methods. * Adopt class based routes * Remove default `app` files * Shift core files * Streamline config files * Set new `ENV` variables * Default new `bootstrap/app.php` * Re-register HTTP middleware * Consolidate service providers * Re-register service providers * Re-register routes * Re-register scheduled commands * Bump Composer dependencies * Use `<env>` tags for configuration `<env>` tags have a lower precedence than system environment variables making it easier to overwrite PHPUnit configuration values in additional environments, such a CI. Review this blog post for more details on configuration precedence when testing Laravel: https://jasonmccreary.me/articles/laravel-testing-configuration-precedence/ * Adopt anonymous migrations * Rename `password_resets` table * Convert `$casts` property to method * Adopt Laravel type hints * Mark base controller as `abstract` * Remove `CreatesApplication` testing trait * Shift cleanup * Fix shift first issues * Updating Rules for laravel 11, sanctum config and pint * Fix Carbon issue on dashboard * Temporary fix for tests while migration is issue fixed on laravel side * Carbon needs numerical values, not strings * Minimum php version * Fix domain installation step not fetching the correct company_id * Fix Role Policy wasn't properly registered ---------
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Tests;
|
||||
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
|
||||
trait CreatesApplication
|
||||
{
|
||||
/**
|
||||
* Creates the application.
|
||||
*
|
||||
* @return \Illuminate\Foundation\Application
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
$app = require __DIR__.'/../bootstrap/app.php';
|
||||
|
||||
$app->make(Kernel::class)->bootstrap();
|
||||
|
||||
return $app;
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
use App\Jobs\CreateBackupJob;
|
||||
use App\Models\FileDisk;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Queue;
|
||||
use InvoiceShelf\Jobs\CreateBackupJob;
|
||||
use InvoiceShelf\Models\FileDisk;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Settings\CompanyController;
|
||||
use App\Http\Requests\CompanyRequest;
|
||||
use App\Http\Requests\ProfileRequest;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\InvoiceItem;
|
||||
use App\Models\Tax;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Settings\CompanyController;
|
||||
use InvoiceShelf\Http\Requests\CompanyRequest;
|
||||
use InvoiceShelf\Http\Requests\ProfileRequest;
|
||||
use InvoiceShelf\Models\Invoice;
|
||||
use InvoiceShelf\Models\InvoiceItem;
|
||||
use InvoiceShelf\Models\Tax;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Company\CompaniesController;
|
||||
use App\Http\Requests\CompaniesRequest;
|
||||
use App\Models\Company;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Company\CompaniesController;
|
||||
use InvoiceShelf\Http\Requests\CompaniesRequest;
|
||||
use InvoiceShelf\Models\Company;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\CustomField\CustomFieldsController;
|
||||
use App\Http\Requests\CustomFieldRequest;
|
||||
use App\Models\CustomField;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\CustomField\CustomFieldsController;
|
||||
use InvoiceShelf\Http\Requests\CustomFieldRequest;
|
||||
use InvoiceShelf\Models\CustomField;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\deleteJson;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Customer\CustomersController;
|
||||
use App\Http\Requests\CustomerRequest;
|
||||
use App\Models\Customer;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Customer\CustomersController;
|
||||
use InvoiceShelf\Http\Requests\CustomerRequest;
|
||||
use InvoiceShelf\Models\Customer;
|
||||
use InvoiceShelf\Models\Invoice;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Estimate\EstimatesController;
|
||||
use App\Http\Controllers\V1\Admin\Estimate\SendEstimateController;
|
||||
use App\Http\Requests\DeleteEstimatesRequest;
|
||||
use App\Http\Requests\EstimatesRequest;
|
||||
use App\Http\Requests\SendEstimatesRequest;
|
||||
use App\Mail\SendEstimateMail;
|
||||
use App\Models\Estimate;
|
||||
use App\Models\EstimateItem;
|
||||
use App\Models\Tax;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Estimate\EstimatesController;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Estimate\SendEstimateController;
|
||||
use InvoiceShelf\Http\Requests\DeleteEstimatesRequest;
|
||||
use InvoiceShelf\Http\Requests\EstimatesRequest;
|
||||
use InvoiceShelf\Http\Requests\SendEstimatesRequest;
|
||||
use InvoiceShelf\Mail\SendEstimateMail;
|
||||
use InvoiceShelf\Models\Estimate;
|
||||
use InvoiceShelf\Models\EstimateItem;
|
||||
use InvoiceShelf\Models\Tax;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Expense\ExpenseCategoriesController;
|
||||
use App\Http\Requests\ExpenseCategoryRequest;
|
||||
use App\Models\ExpenseCategory;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Expense\ExpenseCategoriesController;
|
||||
use InvoiceShelf\Http\Requests\ExpenseCategoryRequest;
|
||||
use InvoiceShelf\Models\ExpenseCategory;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\deleteJson;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Expense\ExpensesController;
|
||||
use App\Http\Requests\ExpenseRequest;
|
||||
use App\Models\Expense;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Expense\ExpensesController;
|
||||
use InvoiceShelf\Http\Requests\ExpenseRequest;
|
||||
use InvoiceShelf\Models\Expense;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use App\Models\FileDisk;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\FileDisk;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Invoice\InvoicesController;
|
||||
use App\Http\Requests\InvoicesRequest;
|
||||
use App\Mail\SendInvoiceMail;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\InvoiceItem;
|
||||
use App\Models\Tax;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Invoice\InvoicesController;
|
||||
use InvoiceShelf\Http\Requests\InvoicesRequest;
|
||||
use InvoiceShelf\Mail\SendInvoiceMail;
|
||||
use InvoiceShelf\Models\Invoice;
|
||||
use InvoiceShelf\Models\InvoiceItem;
|
||||
use InvoiceShelf\Models\Tax;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Item\ItemsController;
|
||||
use App\Http\Requests\ItemsRequest;
|
||||
use App\Models\Item;
|
||||
use App\Models\Tax;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Item\ItemsController;
|
||||
use InvoiceShelf\Http\Requests\ItemsRequest;
|
||||
use InvoiceShelf\Models\Item;
|
||||
use InvoiceShelf\Models\Tax;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\{getJson};
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Note;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Note;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\deleteJson;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Payment\PaymentMethodsController;
|
||||
use App\Http\Requests\PaymentMethodRequest;
|
||||
use App\Models\PaymentMethod;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Payment\PaymentMethodsController;
|
||||
use InvoiceShelf\Http\Requests\PaymentMethodRequest;
|
||||
use InvoiceShelf\Models\PaymentMethod;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\deleteJson;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Payment\PaymentsController;
|
||||
use App\Http\Requests\PaymentRequest;
|
||||
use App\Mail\SendPaymentMail;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\Payment;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Payment\PaymentsController;
|
||||
use InvoiceShelf\Http\Requests\PaymentRequest;
|
||||
use InvoiceShelf\Mail\SendPaymentMail;
|
||||
use InvoiceShelf\Models\Invoice;
|
||||
use InvoiceShelf\Models\Payment;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\RecurringInvoice\RecurringInvoiceController;
|
||||
use App\Http\Requests\RecurringInvoiceRequest;
|
||||
use App\Models\InvoiceItem;
|
||||
use App\Models\RecurringInvoice;
|
||||
use App\Models\User;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\RecurringInvoice\RecurringInvoiceController;
|
||||
use InvoiceShelf\Http\Requests\RecurringInvoiceRequest;
|
||||
use InvoiceShelf\Models\InvoiceItem;
|
||||
use InvoiceShelf\Models\RecurringInvoice;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\postJson;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Settings\TaxTypesController;
|
||||
use App\Http\Requests\TaxTypeRequest;
|
||||
use App\Models\TaxType;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Settings\TaxTypesController;
|
||||
use InvoiceShelf\Http\Requests\TaxTypeRequest;
|
||||
use InvoiceShelf\Models\TaxType;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\deleteJson;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\V1\Admin\Item\UnitsController;
|
||||
use App\Http\Requests\UnitRequest;
|
||||
use App\Models\Unit;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Item\UnitsController;
|
||||
use InvoiceShelf\Http\Requests\UnitRequest;
|
||||
use InvoiceShelf\Models\Unit;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\deleteJson;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use InvoiceShelf\Http\Controllers\V1\Admin\Users\UsersController;
|
||||
use InvoiceShelf\Http\Requests\UserRequest;
|
||||
use InvoiceShelf\Models\User;
|
||||
use App\Http\Controllers\V1\Admin\Users\UsersController;
|
||||
use App\Http\Requests\UserRequest;
|
||||
use App\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Faker\fake;
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace Tests\Feature\Customer;
|
||||
|
||||
use App\Models\Customer;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use InvoiceShelf\Models\Customer;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
namespace Tests\Feature\Customer;
|
||||
|
||||
use App\Models\Customer;
|
||||
use App\Models\Estimate;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use InvoiceShelf\Models\Customer;
|
||||
use InvoiceShelf\Models\Estimate;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
namespace Tests\Feature\Customer;
|
||||
|
||||
use App\Models\Customer;
|
||||
use App\Models\Expense;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use InvoiceShelf\Models\Customer;
|
||||
use InvoiceShelf\Models\Expense;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
namespace Tests\Feature\Customer;
|
||||
|
||||
use App\Models\Customer;
|
||||
use App\Models\Invoice;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use InvoiceShelf\Models\Customer;
|
||||
use InvoiceShelf\Models\Invoice;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
namespace Tests\Feature\Customer;
|
||||
|
||||
use App\Models\Customer;
|
||||
use App\Models\Payment;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use InvoiceShelf\Models\Customer;
|
||||
use InvoiceShelf\Models\Payment;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
namespace Tests\Feature\Customer;
|
||||
|
||||
use App\Http\Controllers\V1\Customer\General\ProfileController;
|
||||
use App\Http\Requests\Customer\CustomerProfileRequest;
|
||||
use App\Models\Customer;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use InvoiceShelf\Http\Controllers\V1\Customer\General\ProfileController;
|
||||
use InvoiceShelf\Http\Requests\Customer\CustomerProfileRequest;
|
||||
use InvoiceShelf\Models\Customer;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
use function Pest\Laravel\getJson;
|
||||
|
||||
@@ -10,7 +10,6 @@ use JMac\Testing\Traits\AdditionalAssertions;
|
||||
abstract class TestCase extends BaseTestCase
|
||||
{
|
||||
use AdditionalAssertions;
|
||||
use CreatesApplication;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Address;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Address;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Company;
|
||||
use App\Models\CompanySetting;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Company;
|
||||
use InvoiceShelf\Models\CompanySetting;
|
||||
|
||||
use function Pest\Faker\fake;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Company;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Company;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Address;
|
||||
use App\Models\Country;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Address;
|
||||
use InvoiceShelf\Models\Country;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\CustomField;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\CustomField;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\CustomFieldValue;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\CustomFieldValue;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Address;
|
||||
use App\Models\Customer;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Address;
|
||||
use InvoiceShelf\Models\Customer;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Estimate;
|
||||
use App\Models\EstimateItem;
|
||||
use App\Models\Item;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Estimate;
|
||||
use InvoiceShelf\Models\EstimateItem;
|
||||
use InvoiceShelf\Models\Item;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Requests\EstimatesRequest;
|
||||
use App\Models\Estimate;
|
||||
use App\Models\EstimateItem;
|
||||
use App\Models\Tax;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Requests\EstimatesRequest;
|
||||
use InvoiceShelf\Models\Estimate;
|
||||
use InvoiceShelf\Models\EstimateItem;
|
||||
use InvoiceShelf\Models\Tax;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use InvoiceShelf\Models\ExchangeRateLog;
|
||||
use InvoiceShelf\Models\Expense;
|
||||
use App\Models\ExchangeRateLog;
|
||||
use App\Models\Expense;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\ExpenseCategory;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\ExpenseCategory;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Expense;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Expense;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Invoice;
|
||||
use App\Models\InvoiceItem;
|
||||
use App\Models\Item;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Invoice;
|
||||
use InvoiceShelf\Models\InvoiceItem;
|
||||
use InvoiceShelf\Models\Item;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Requests\InvoicesRequest;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\InvoiceItem;
|
||||
use App\Models\Tax;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Http\Requests\InvoicesRequest;
|
||||
use InvoiceShelf\Models\Invoice;
|
||||
use InvoiceShelf\Models\InvoiceItem;
|
||||
use InvoiceShelf\Models\Tax;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Estimate;
|
||||
use App\Models\EstimateItem;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\InvoiceItem;
|
||||
use App\Models\Item;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Estimate;
|
||||
use InvoiceShelf\Models\EstimateItem;
|
||||
use InvoiceShelf\Models\Invoice;
|
||||
use InvoiceShelf\Models\InvoiceItem;
|
||||
use InvoiceShelf\Models\Item;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\PaymentMethod;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\PaymentMethod;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Payment;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Payment;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\RecurringInvoice;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\RecurringInvoice;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Setting;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Setting;
|
||||
|
||||
use function Pest\Faker\fake;
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Estimate;
|
||||
use App\Models\EstimateItem;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\InvoiceItem;
|
||||
use App\Models\Tax;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Estimate;
|
||||
use InvoiceShelf\Models\EstimateItem;
|
||||
use InvoiceShelf\Models\Invoice;
|
||||
use InvoiceShelf\Models\InvoiceItem;
|
||||
use InvoiceShelf\Models\Tax;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\TaxType;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\TaxType;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Unit;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\Unit;
|
||||
use InvoiceShelf\Models\User;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
beforeEach(function () {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use InvoiceShelf\Models\User;
|
||||
|
||||
beforeEach(function () {
|
||||
Artisan::call('db:seed', ['--class' => 'DatabaseSeeder', '--force' => true]);
|
||||
|
||||
Reference in New Issue
Block a user