From f4eed668e7d7e0d689957db1b04e33dc7bdfb319 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 5 Nov 2022 10:00:12 +0100 Subject: [PATCH] seems impacted by removal of cache, let's see if we can adjust the test --- tst/ModelTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tst/ModelTest.php b/tst/ModelTest.php index e693856..dbbbbc2 100644 --- a/tst/ModelTest.php +++ b/tst/ModelTest.php @@ -261,6 +261,9 @@ class ModelTest extends PHPUnit_Framework_TestCase $paste->store(); $paste->exists(); + $comment = $paste->getComment(Helper::getPasteId()); + $comment->setData($commentData); + $db = new PDO( $options['model_options']['dsn'], $options['model_options']['usr'], @@ -271,8 +274,6 @@ class ModelTest extends PHPUnit_Framework_TestCase $statement->execute(); $statement->closeCursor(); - $comment = $paste->getComment(Helper::getPasteId()); - $comment->setData($commentData); $comment->store(); }