Skip to content

Commit

Permalink
Restrict build GraphQL test to only the projects it creates
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjallen committed Jan 17, 2025
1 parent 3fa5cc4 commit 8b44a79
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/Feature/GraphQL/BuildTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,12 @@ public function testBasicBuildFiltering(): void
}

$this->graphQL('
query($buildname: String) {
projects {
query($projectid: ID, $buildname: String) {
projects(filters: {
eq: {
id: $projectid
}
}) {
edges {
node {
name
Expand All @@ -491,6 +495,7 @@ public function testBasicBuildFiltering(): void
}
}
', [
'projectid' => $this->project->id,
'buildname' => $builds[2]->name,
])->assertJson([
'data' => [
Expand Down

0 comments on commit 8b44a79

Please sign in to comment.