diff --git a/tests/DropTest.php b/tests/DropTest.php index eac5d211..95c3fd06 100644 --- a/tests/DropTest.php +++ b/tests/DropTest.php @@ -2,6 +2,8 @@ namespace Medoo\Tests; +use Medoo\Medoo; + /** * @coversDefaultClass \Medoo\Medoo */ @@ -24,4 +26,26 @@ public function testDrop($type) $this->database->queryString ); } + + /** + * @covers ::drop() + */ + public function testDropWithPrefix() + { + $database = new Medoo([ + 'testMode' => true, + 'prefix' => 'PREFIX_' + ]); + + $database->type = "sqlite"; + + $database->drop("account"); + + $this->assertQuery( + <<queryString + ); + } }