'Free', 'slug' => 'free', 'price' => 0, 'features' => []]); $company = Company::create([ 'plan_id' => $plan->id, 'slug' => 'viewco', 'name' => 'View Co', 'status' => 'active', ]); $admin = SuperAdmin::create([ 'name' => 'Op', 'email' => 'op@example.com', 'password' => bcrypt('secret'), 'is_active' => true, 'role' => 'owner', ]); app(TenantManager::class)->setCurrent(null); $response = $this->actingAs($admin, 'central') ->get("http://service.mir.md/admin/companies/{$company->id}"); $response->assertStatus(200); $response->assertSee('View Co'); } }