From 176f29f995a1383b8cc3b806dd4aadaecf7d6183 Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Tue, 14 Nov 2023 20:14:26 +1300 Subject: [PATCH] MNT Fix broken build --- tests/Schema/IntegrationTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/Schema/IntegrationTest.php b/tests/Schema/IntegrationTest.php index 372835cf..08759eb1 100644 --- a/tests/Schema/IntegrationTest.php +++ b/tests/Schema/IntegrationTest.php @@ -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(); @@ -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])); @@ -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 = <<querySchema($schema, $query); $this->assertSuccess($result); - $this->assertResult('readOneDataObjectFake.myField', 'test3', $result); + $this->assertResult('readOneDataObjectFake.myField', 'test4', $result); $query = <<querySchema($schema, $query); $this->assertSuccess($result); - $this->assertResult('readOneDataObjectFake.myField', 'test2', $result); + $this->assertResult('readOneDataObjectFake.myField', 'test4', $result); $query = <<