Skip to content

Commit

Permalink
Merge pull request #1138 from rebing/mp-1137
Browse files Browse the repository at this point in the history
Use testbench `WithConfig` attribute to set app.debug
  • Loading branch information
mfn authored Jun 4, 2024
2 parents 1d4873c + 22d0165 commit 85d5faa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Database/EmptyQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace Rebing\GraphQL\Tests\Database;

use Laragraph\Utils\BadRequestGraphQLException;
use Orchestra\Testbench\Attributes\WithConfig;
use Rebing\GraphQL\Tests\TestCaseDatabase;

class EmptyQueryTest extends TestCaseDatabase
Expand All @@ -23,6 +24,7 @@ public function testEmptyQuery(array $parameters, string $expectedError): void
self::assertSame($expectedError, $result['errors'][0]['message']);
}

#[WithConfig('app.debug', true)]
public function testNoExplicitContentType(): void
{
$response = $this->call('POST', '/graphql', [
Expand Down

0 comments on commit 85d5faa

Please sign in to comment.