Skip to content

Commit 1bf377a

Browse files
authored
Merge pull request #26 from Alejinho/master
Add support for Laravel 8.x
2 parents 51d15ce + 996944e commit 1bf377a

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/composer.lock
22
/vendor
33
/build
4-
/.phpunit.result.cache
4+
/.phpunit.result.cache
5+
tags

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"require": {
2020
"php": ">=7.2",
2121
"thecodingmachine/graphqlite": "^4",
22-
"illuminate/console": "^5.7|^6.0|^7",
23-
"illuminate/container": "^5.7|^6.0|^7",
24-
"illuminate/support": "^5.7|^6.0|^7",
25-
"illuminate/cache": "^5.7|^6.0|^7",
22+
"illuminate/console": "^5.7|^6.0|^7|^8",
23+
"illuminate/container": "^5.7|^6.0|^7|^8",
24+
"illuminate/support": "^5.7|^6.0|^7|^8",
25+
"illuminate/cache": "^5.7|^6.0|^7|^8",
2626
"symfony/psr-http-message-bridge": "^1.3.0 || ^2",
2727
"laminas/laminas-diactoros": "^2.2.2",
2828
"symfony/cache": "^4.3 || ^5"

tests/Providers/GraphQLiteServiceProviderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testAuthentication()
3939
public function testPagination()
4040
{
4141
$response = $this->json('POST', '/graphql', ['query' => <<<GQL
42-
{
42+
{
4343
testPaginator {
4444
items
4545
firstItem
@@ -127,7 +127,7 @@ public function testValidatorMultiple()
127127
]
128128
]);
129129

130-
$this->assertContains('The foo must start with one of the following: 192', $response->json('errors')[0]['message']);
130+
$this->assertStringContainsString('The foo must start with one of the following: 192', $response->json('errors')[0]['message']);
131131

132132
$this->assertSame(400, $response->getStatusCode(), $response->getContent());
133133
$response = $this->json('POST', '/graphql', ['query' => '{ testValidatorMultiple(foo:"192.168.1") }']);
@@ -157,7 +157,7 @@ public function testValidatorMultiple()
157157
]
158158
]
159159
]);
160-
$this->assertContains('The foo must start with one of the following: 192', $response->json('errors')[0]['message']);
160+
$this->assertStringContainsString('The foo must start with one of the following: 192', $response->json('errors')[0]['message']);
161161

162162
$this->assertSame(400, $response->getStatusCode(), $response->getContent());
163163

0 commit comments

Comments
 (0)