Skip to content

Commit

Permalink
MNT Fix broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Nov 14, 2023
1 parent 5b40be3 commit 176f29f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/Schema/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,9 @@ public function testFilterAndSort()
$dataObject3 = DataObjectFake::create(['MyField' => 'test3', 'AuthorID' => $author2->ID]);
$dataObject3->write();

$dataObject4 = DataObjectFake::create(['MyField' => 'test4', 'AuthorID' => $author2->ID]);
$dataObject4->write();

$file1 = File::create(['Title' => 'file1']);
$file1->write();

Expand All @@ -446,6 +449,7 @@ public function testFilterAndSort()
$id1 = $dataObject1->ID;
$id2 = $dataObject2->ID;
$id3 = $dataObject3->ID;
$id4 = $dataObject4->ID;

$schema = $this->createSchema(new TestSchemaBuilder([$dir]));

Expand Down Expand Up @@ -491,7 +495,7 @@ public function testFilterAndSort()
GRAPHQL;
$result = $this->querySchema($schema, $query);
$this->assertSuccess($result);
$this->assertResult('readOneDataObjectFake.myField', 'test2', $result);
$this->assertResult('readOneDataObjectFake.myField', 'test4', $result);

$query = <<<GRAPHQL
query {
Expand All @@ -502,7 +506,7 @@ public function testFilterAndSort()
GRAPHQL;
$result = $this->querySchema($schema, $query);
$this->assertSuccess($result);
$this->assertResult('readOneDataObjectFake.myField', 'test3', $result);
$this->assertResult('readOneDataObjectFake.myField', 'test4', $result);

$query = <<<GRAPHQL
query {
Expand All @@ -513,7 +517,7 @@ public function testFilterAndSort()
GRAPHQL;
$result = $this->querySchema($schema, $query);
$this->assertSuccess($result);
$this->assertResult('readOneDataObjectFake.myField', 'test2', $result);
$this->assertResult('readOneDataObjectFake.myField', 'test4', $result);

$query = <<<GRAPHQL
query {
Expand Down

0 comments on commit 176f29f

Please sign in to comment.