We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1244d2a commit 125bec0Copy full SHA for 125bec0
src/Laravel/Tests/GraphQlTest.php
@@ -66,6 +66,7 @@ public function testGetBooksWithPaginationAndOrder(): void
66
$this->assertCount(3, $data['data']['books']['edges']);
67
$this->assertArrayNotHasKey('errors', $data);
68
}
69
+
70
public function testCreateBook(): void
71
{
72
/** @var \Workbench\App\Models\Author $author */
@@ -86,7 +87,7 @@ public function testCreateBook(): void
86
87
'name' => fake()->name(),
88
'author' => 'api/authors/'.$author->id,
89
'isbn' => fake()->isbn13(),
- 'isAvailable' => rand(0,1) === 1,
90
+ 'isAvailable' => 1 === random_int(0, 1),
91
],
92
93
], ['accept' => ['application/json']]);
0 commit comments