1
0
Эх сурвалжийг харах

seems impacted by removal of cache, let's see if we can adjust the test

El RIDO 3 жил өмнө
parent
commit
f4eed668e7
1 өөрчлөгдсөн 3 нэмэгдсэн , 2 устгасан
  1. 3 2
      tst/ModelTest.php

+ 3 - 2
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();
     }