diff --git a/tests/TestHelpers.php b/tests/TestHelpers.php index f935cd371..4ca1b4cfd 100644 --- a/tests/TestHelpers.php +++ b/tests/TestHelpers.php @@ -186,16 +186,16 @@ public static function emptyDB(array $credentials) $pdo = new \PDO($dsn, $credentials['user'], $credentials['password'], $options); $pdo->prepare(' DELETE FROM `conversation`; + DELETE FROM `telegram_update`; + DELETE FROM `chosen_inline_query`; + DELETE FROM `inline_query`; DELETE FROM `message`; DELETE FROM `user_chat`; - DELETE FROM `user`; DELETE FROM `chat`; - DELETE FROM `chosen_inline_query`; - DELETE FROM `inline_query`; - DELETE FROM `telegram_update`; + DELETE FROM `user`; ')->execute(); } catch (\Exception $e) { - //Ignore... + throw new TelegramException($e->getMessage()); } } }