Skip to content

Commit

Permalink
Update PersonalTranslationTest.php
Browse files Browse the repository at this point in the history
updated test after MySQL cast fix
  • Loading branch information
birko committed Mar 25, 2014
1 parent 5b17b77 commit e5f5b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Gedmo/Translatable/PersonalTranslationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function shouldBeAbleToUseTranslationQueryHint()
$this->assertEquals('lt', $result[0]['title']);
$sqlQueriesExecuted = $this->queryAnalyzer->getExecutedQueries();
$this->assertCount(1, $sqlQueriesExecuted);
$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]);
$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]);
}

private function populate()
Expand Down

0 comments on commit e5f5b4c

Please sign in to comment.