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 a713bd8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 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 @@ -484,14 +488,14 @@ public function testFilterAndSort()

$query = <<<GRAPHQL
query {
readOneDataObjectFake(sort: { AuthorID: DESC , myField: ASC }) {
readOneDataObjectFake(sort: { AuthorID: DESC , myField: DESC }) {
myField
}
}
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 a713bd8

Please sign in to comment.