Skip to content

Commit

Permalink
Merge pull request #37 from TomHAnderson/hotfix/unittest-filter_
Browse files Browse the repository at this point in the history
Fixed old filter_format venue_*
  • Loading branch information
TomHAnderson authored Dec 9, 2023
2 parents 2df392c + 5ba6f1c commit ed5069d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/Feature/Metadata/GlobalByValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function testGlobalByValueFalse(): void
]),
]);

$query = '{ artist { edges { node { performances ( filter: {venue_neq: "test"} ) { edges { node { venue } } } } } } }';
$query = '{ artist { edges { node { performances ( filter: {venue: { neq: "test" } } ) { edges { node { venue } } } } } } }';
$result = GraphQL::executeQuery($schema, $query);

$this->assertFalse($driver->get(Config::class)->getGlobalByValue());
Expand Down
6 changes: 3 additions & 3 deletions test/Feature/Metadata/GlobalEnableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testGlobalEnable(): void
]),
]);

$query = '{ artist { edges { node { performances ( filter: {venue_neq: "test"} ) { edges { node { venue } } } } } } }';
$query = '{ artist { edges { node { performances ( filter: {venue: { neq: "test" } } ) { edges { node { venue } } } } } } }';
$result = GraphQL::executeQuery($schema, $query);

$this->assertTrue($driver->get(Config::class)->getGlobalEnable());
Expand Down Expand Up @@ -65,7 +65,7 @@ public function testGlobalIgnoreFieldName(): void
]),
]);

$query = '{ artist { edges { node { name performances ( filter: {venue_neq: "test"} ) { edges { node { venue } } } } } } }';
$query = '{ artist { edges { node { name performances ( filter: {venue: { neq: "test" } } ) { edges { node { venue } } } } } } }';
$result = GraphQL::executeQuery($schema, $query);

$this->assertEquals(
Expand Down Expand Up @@ -97,7 +97,7 @@ public function testGlobalIgnoreAssociationName(): void
]),
]);

$query = '{ artist { edges { node { name performances ( filter: {venue_neq: "test"} ) { edges { node { venue } } } } } } }';
$query = '{ artist { edges { node { name performances ( filter: {venue: { neq: "test" } } ) { edges { node { venue } } } } } } }';
$result = GraphQL::executeQuery($schema, $query);

$this->assertEquals(
Expand Down
6 changes: 3 additions & 3 deletions test/Feature/Metadata/TypeNameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function testEmptyGroupNameGlobalEnable(): void
]),
]);

$query = '{ artist { edges { node { performances ( filter: {venue_neq: "test"} ) { edges { node { venue } } } } } } }';
$query = '{ artist { edges { node { performances ( filter: {venue: { neq: "test" } } ) { edges { node { venue } } } } } } }';
$result = GraphQL::executeQuery($schema, $query);

$this->assertEquals('Artist', $driver->type(Artist::class)->name);
Expand Down Expand Up @@ -95,7 +95,7 @@ public function testEmptyGroupName(): void
]),
]);

$query = '{ artist { edges { node { performances ( filter: {venue_neq: "test"} ) { edges { node { venue } } } } } } }';
$query = '{ artist { edges { node { performances ( filter: {venue: { neq: "test" } } ) { edges { node { venue } } } } } } }';
$result = GraphQL::executeQuery($schema, $query);

$this->assertEquals('Artist', $driver->type(Artist::class)->name);
Expand Down Expand Up @@ -123,7 +123,7 @@ public function testEntityPrefix(): void
]),
]);

$query = '{ artist { edges { node { performances ( filter: {venue_neq: "test"} ) { edges { node { venue } } } } } } }';
$query = '{ artist { edges { node { performances ( filter: {venue: { neq: "test" } } ) { edges { node { venue } } } } } } }';
$result = GraphQL::executeQuery($schema, $query);

$this->assertEquals('Artist_default', $driver->type(Artist::class)->name);
Expand Down

0 comments on commit ed5069d

Please sign in to comment.