33 lines
1010 B
PHP
33 lines
1010 B
PHP
<?php
|
|
require __DIR__.'/vendor/autoload.php';
|
|
$app = require_once __DIR__.'/bootstrap/app.php';
|
|
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
|
|
|
|
use App\Models\Board;
|
|
use App\Models\Member;
|
|
use App\Services\MatrixEngineService;
|
|
|
|
$board = Board::where('type', 'prestige')->first();
|
|
if (!$board) die("No prestige board found\n");
|
|
$engine = app(MatrixEngineService::class);
|
|
|
|
echo "Starting Prestige Board Split Test on Board {$board->id}...\n";
|
|
|
|
try {
|
|
for ($i = 8; $i <= 15; $i++) {
|
|
$member = Member::create([
|
|
'username' => 'fake_prestige_' . $i . '_' . uniqid(),
|
|
'name' => 'Fake Prestige ' . $i,
|
|
'email' => "fake_prestige_$i" . uniqid() ."@test.com",
|
|
'password' => bcrypt('123456'),
|
|
'status' => 'active'
|
|
]);
|
|
|
|
$engine->attemptBoardPlacement($member, 'prestige');
|
|
}
|
|
} catch (\Exception $e) {
|
|
echo "EXCEPTION: " . $e->getMessage() . "\n" . $e->getTraceAsString() . "\n";
|
|
}
|
|
|
|
echo "Done.\n";
|