Skip to content

Commit

Permalink
More table alias tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-deluna committed Sep 19, 2019
1 parent 304ea79 commit cc2fc3f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Translator/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ public function testTable()
{
return $q->table('db.phpunit', 'foo')->select();
});

$this->assertQueryTranslation('select * from `db`.`phpunit` as `foo`', array(), function($q)
{
return $q->table('db.phpunit as foo')->select();
});

$this->assertQueryTranslation('select * from `phpunit` as `foo`', array(), function($q)
{
return $q->table('phpunit as foo')->select();
});
}

/**
Expand Down

0 comments on commit cc2fc3f

Please sign in to comment.