Skip to content

Commit

Permalink
Adds sql generation test
Browse files Browse the repository at this point in the history
  • Loading branch information
carnage authored and Ocramius committed Feb 19, 2018
1 parent f351f5a commit ab03f16
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Doctrine/Tests/ORM/Query/DeleteSqlGenerationTest.php
Expand Up @@ -44,6 +44,14 @@ public function assertSqlGeneration($dqlToBeTested, $sqlToBeConfirmed)
self::assertEquals($sqlToBeConfirmed, $sqlGenerated);
}

public function testSupportsDeleteWithoutWhereAndAlias() : void
{
$this->assertSqlGeneration(
'DELETE FROM Doctrine\Tests\Models\CMS\CmsUser',
'DELETE FROM cms_users'
);
}

public function testSupportsDeleteWithoutWhereAndFrom()
{
$this->assertSqlGeneration(
Expand Down

0 comments on commit ab03f16

Please sign in to comment.