Skip to content

Commit

Permalink
adjust applicant filter test seeding
Browse files Browse the repository at this point in the history
  • Loading branch information
esizer committed Nov 29, 2024
1 parent 06b13f4 commit 959bb0a
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions api/tests/Feature/ApplicantFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ protected function setUp(): void
Notify::spy(); // don't send any notifications
$this->bootRefreshesSchemaCache();

$this->
$this->seed(RolePermissionSeeder::class);
$this->seed(DepartmentSeeder::class);
$this->seed(TeamSeeder::class);
$this->seed([
RolePermissionSeeder::class,
DepartmentSeeder::class,
TeamSeeder::class,
]);

// Create super user we run tests as
// Note: this extra user does change the results of a couple queries
Expand Down Expand Up @@ -219,6 +220,7 @@ public function testFactoryRelationships()
ClassificationSeeder::class,
CommunitySeeder::class,
WorkStreamSeeder::class,
SkillFamilySeeder::class,
SkillSeeder::class,
PoolTestSeeder::class,
]);
Expand Down Expand Up @@ -246,11 +248,14 @@ public function testFactoryRelationships()
public function testQueryRelationships()
{
// Before we add relationships, we need to seed the related values
$this->seed(ClassificationSeeder::class);
$this->seed(CommunitySeeder::class);
$this->seed(SkillFamilySeeder::class);
$this->seed(SkillSeeder::class);
$this->seed(PoolTestSeeder::class);
$this->seed([
ClassificationSeeder::class,
CommunitySeeder::class,
WorkStreamSeeder::class,
SkillFamilySeeder::class,
SkillSeeder::class,
PoolTestSeeder::class,
]);

$filter = ApplicantFilter::factory()->withRelationships()->create();
$request = PoolCandidateSearchRequest::factory()->create([
Expand Down

0 comments on commit 959bb0a

Please sign in to comment.