diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php index 8364a84..5a0b7c1 100644 --- a/tests/Feature/ExampleTest.php +++ b/tests/Feature/ExampleTest.php @@ -8,12 +8,12 @@ use Tests\TestCase; class ExampleTest extends TestCase { /** - * A basic test example. + * On the central domain, the root path redirects to the admin panel. */ - public function test_the_application_returns_a_successful_response(): void + public function test_central_root_redirects_to_admin(): void { - $response = $this->get('/'); + $response = $this->get('http://service.mir.md/'); - $response->assertStatus(200); + $response->assertRedirect('/admin'); } } diff --git a/tests/Feature/WorkOrderCalcTest.php b/tests/Feature/WorkOrderCalcTest.php index 493538c..73fb34a 100644 --- a/tests/Feature/WorkOrderCalcTest.php +++ b/tests/Feature/WorkOrderCalcTest.php @@ -50,9 +50,8 @@ class WorkOrderCalcTest extends TestCase 'work_order_id' => $wo->id, 'name' => 'Filtru', 'qty' => 2, - 'price' => 150, - 'total' => 300, - 'status' => 'pending', + 'sell_price' => 150, + 'status' => 'needed', ]); $wo->refresh(); @@ -93,7 +92,7 @@ class WorkOrderCalcTest extends TestCase $vehicle = Vehicle::create([ 'client_id' => $client->id, 'plate' => 'TST 001', - 'brand' => 'Test', + 'make' => 'Test', 'model' => 'X', ]);