Skip to content

Commit

Permalink
Improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Apr 10, 2019
1 parent be1896c commit ea41e90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Database/DatabaseQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2254,21 +2254,21 @@ public function testMySqlWrappingJsonWithBooleanAndIntegerThatLooksLikeOne()

public function testJsonPathEscaping()
{
$expectedJsonEscape = <<<SQL
$expectedWithJsonEscaped = <<<SQL
select json_unquote(json_extract(`json`, '$."\'))#"'))
SQL;

$builder = $this->getMySqlBuilder();
$builder->select("json->'))#");
$this->assertEquals($expectedJsonEscape, $builder->toSql());
$this->assertEquals($expectedWithJsonEscaped, $builder->toSql());

$builder = $this->getMySqlBuilder();
$builder->select("json->\'))#");
$this->assertEquals($expectedJsonEscape, $builder->toSql());
$this->assertEquals($expectedWithJsonEscaped, $builder->toSql());

$builder = $this->getMySqlBuilder();
$builder->select("json->\\\'))#");
$this->assertEquals($expectedJsonEscape, $builder->toSql());
$this->assertEquals($expectedWithJsonEscaped, $builder->toSql());
}

public function testMySqlWrappingJson()
Expand Down

0 comments on commit ea41e90

Please sign in to comment.