We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62fdb93 commit e5b4486Copy full SHA for e5b4486
tests/DropTest.php
@@ -2,6 +2,8 @@
2
3
namespace Medoo\Tests;
4
5
+use Medoo\Medoo;
6
+
7
/**
8
* @coversDefaultClass \Medoo\Medoo
9
*/
@@ -24,4 +26,26 @@ public function testDrop($type)
24
26
$this->database->queryString
25
27
);
28
}
29
30
+ /**
31
+ * @covers ::drop()
32
+ */
33
+ public function testDropWithPrefix()
34
+ {
35
+ $database = new Medoo([
36
+ 'testMode' => true,
37
+ 'prefix' => 'PREFIX_'
38
+ ]);
39
40
+ $database->type = "sqlite";
41
42
+ $database->drop("account");
43
44
+ $this->assertQuery(
45
+ <<<EOD
46
+ DROP TABLE IF EXISTS "PREFIX_account"
47
+ EOD,
48
+ $database->queryString
49
+ );
50
+ }
51
0 commit comments