DropTest.php 473 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Medoo\Tests;
  3. /**
  4. * @coversDefaultClass \Medoo\Medoo
  5. */
  6. class DropTest extends MedooTestCase
  7. {
  8. /**
  9. * @covers ::drop()
  10. * @dataProvider typesProvider
  11. */
  12. public function testDrop($type)
  13. {
  14. $this->setType($type);
  15. $this->database->drop("account");
  16. $this->assertQuery(
  17. <<<EOD
  18. DROP TABLE IF EXISTS "account"
  19. EOD,
  20. $this->database->queryString
  21. );
  22. }
  23. }