fix: repair 4 pre-existing failing tests

- WorkOrderCalcTest: vehicle fixture used `brand` (column is `make`, NOT NULL)
  and WorkOrderPart used `price`/manual total (column is `sell_price`, total is
  auto-computed). Switched to correct columns + valid status.
- ExampleTest: stock test expected 200 on `/` but the central domain redirects
  to /admin. Replaced with a deterministic central-root → /admin redirect check.

Full suite now green: 99 passed, 0 failed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-28 07:14:20 +00:00
parent 5e255b7b40
commit d6a0bfb890
2 changed files with 7 additions and 8 deletions
+4 -4
View File
@@ -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');
}
}