fix: resolve PSR-4 autoloading and test failures

- Add proper Tests\ namespace to all test classes in tests/Feature and tests/Unit
  - Split RemainingModelsTest.php into separate files (PSR-4 compliance)
  - Create missing factories: MetaFactory, RemoteEmailFactory
  - Add HasFactory trait to RemoteEmail model
  - Add missing ReflectionClass imports to test files
  - Fix mass assignment issues in Meta and RemoteEmail models
  - Override database connection for RemoteEmail in testing environment
  - Fix DateTime comparison precision issues in tests
This commit is contained in:
idevakk
2025-11-13 09:49:21 -08:00
parent 68ef391c5d
commit 3706072ce5
38 changed files with 863 additions and 680 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace Database\Factories;
use App\Models\Meta;
use Illuminate\Database\Eloquent\Factories\Factory;
class MetaFactory extends Factory
{
protected $model = Meta::class;
public function definition(): array
{
return [
'key' => $this->faker->word(),
'value' => $this->faker->word(),
];
}
}