Skip to content

Commit

Permalink
Adding unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Pick committed Aug 11, 2018
1 parent c721ea4 commit d81f82a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/TestCase/Database/ConnectionTest.php
Expand Up @@ -858,6 +858,14 @@ public function testQuoteIdentifier()
$result = $connection->quoteIdentifier('Model.name as y');
$expected = '"Model"."name" AS "y"';
$this->assertEquals($expected, $result);

$result = $connection->quoteIdentifier('Modeß.nämé as y');
$expected = '"Modeß"."nämé" AS "y"';
$this->assertEquals($expected, $result);

$result = $connection->quoteIdentifier('Model.näme Datum as Model__näme Datum');
$expected = '"Model"."näme Datum" AS "Model__näme Datum"';
$this->assertEquals($expected, $result);
}

/**
Expand Down

0 comments on commit d81f82a

Please sign in to comment.