Skip to content

Commit f3a939a

Browse files
committed
Fixing unit test
1 parent 24b58e7 commit f3a939a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/TdbmFluidColumnGraphqlOptionsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function testGraphql()
1818
$column = $posts->column('foo');
1919
$columnOptions = $column->integer();
2020

21-
$graphqlOptions = $columnOptions->graphql();
21+
$graphqlOptions = $columnOptions->graphqlField();
2222

2323
$graphqlOptions->fieldName('bar')
2424
->logged(true)
@@ -45,11 +45,11 @@ public function testGraphql()
4545

4646
$this->assertContains('@TheCodingMachine\GraphQLite\Annotations\Type', $schema->getTable('posts')->getOptions()['comment']);
4747

48-
$idColumn = $posts->id()->graphql();
48+
$idColumn = $posts->id()->graphqlField();
4949
$this->assertContains('outputType = "ID"', $schema->getTable('posts')->getColumn('id')->getComment());
5050

5151
$users = $fluid->table('users');
52-
$uuidColumn = $users->uuid()->graphql();
52+
$uuidColumn = $users->uuid()->graphqlField();
5353
$this->assertContains('outputType = "ID"', $schema->getTable('users')->getColumn('uuid')->getComment());
5454

5555
}

tests/TdbmFluidJunctionTableGraphqlOptionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function testGraphql()
1717
$fluid->table('users')->uuid();
1818

1919
$junctionTableOptions = $fluid->junctionTable('posts', 'users');
20-
$graphqlOptions = $junctionTableOptions->graphql();
20+
$graphqlOptions = $junctionTableOptions->graphqlField();
2121

2222
$graphqlOptions->logged(true)
2323
->right('CAN_EDIT')

tests/TdbmFluidJunctionTableOptionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function testGraphql()
1616
$fluid->table('posts')->uuid();
1717
$fluid->table('users')->uuid();
1818

19-
$fluid->junctionTable('posts', 'users')->graphql();
19+
$fluid->junctionTable('posts', 'users')->graphqlField();
2020

2121
$this->assertSame("\n@TheCodingMachine\\GraphQLite\\Annotations\\Field", $schema->getTable('posts_users')->getOptions()['comment']);
2222
}

0 commit comments

Comments
 (0)