Skip to content

Commit e5f5b4c

Browse files
committed
Update PersonalTranslationTest.php
updated test after MySQL cast fix
1 parent 5b17b77 commit e5f5b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Gedmo/Translatable/PersonalTranslationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function shouldBeAbleToUseTranslationQueryHint()
217217
$this->assertEquals('lt', $result[0]['title']);
218218
$sqlQueriesExecuted = $this->queryAnalyzer->getExecutedQueries();
219219
$this->assertCount(1, $sqlQueriesExecuted);
220-
$this->assertEquals("SELECT CAST(t1_.content AS VARCHAR(128)) AS title0 FROM Article a0_ LEFT JOIN article_translations t1_ ON t1_.locale = 'lt' AND t1_.field = 'title' AND t1_.object_id = a0_.id", $sqlQueriesExecuted[0]);
220+
$this->assertEquals("SELECT t1_.content AS title0 FROM Article a0_ LEFT JOIN article_translations t1_ ON t1_.locale = 'lt' AND t1_.field = 'title' AND t1_.object_id = a0_.id", $sqlQueriesExecuted[0]);
221221
}
222222

223223
private function populate()

0 commit comments

Comments
 (0)