Ver Fonte

add a verification step for investigating failures in tests below PHP 7.2

El RIDO há 3 anos atrás
pai
commit
6caf1143df
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      tst/ModelTest.php

+ 1 - 1
tst/ModelTest.php

@@ -259,7 +259,7 @@ class ModelTest extends PHPUnit_Framework_TestCase
         $paste = $model->getPaste();
         $paste = $model->getPaste();
         $paste->setData($pasteData);
         $paste->setData($pasteData);
         $paste->store();
         $paste->store();
-        $paste->exists();
+        $this->assertTrue($paste->exists(), 'paste exists before creating comment');
 
 
         $comment = $paste->getComment(Helper::getPasteId());
         $comment = $paste->getComment(Helper::getPasteId());
         $comment->setData($commentData);
         $comment->setData($commentData);