Browse Source

Ensure test data saved

Edgaras Janušauskas 6 years ago
parent
commit
394da5520f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tests/TestCase/ORM/QueryTest.php

+ 3 - 3
tests/TestCase/ORM/QueryTest.php

@@ -3187,7 +3187,7 @@ class QueryTest extends TestCase
         $entity->tiny = 1;
         $entity->small = 10;
 
-        $table->save($entity);
+        $table->saveOrFail($entity);
         $out = $table->find()
             ->where([
                 'cost' => $big,
@@ -3199,7 +3199,7 @@ class QueryTest extends TestCase
         $small = '0.123456789012345';
         $entity = $table->newEntity(['fraction' => $small]);
 
-        $table->save($entity);
+        $table->saveOrFail($entity);
         $out = $table->find()
             ->where([
                 'fraction' => $small,
@@ -3211,7 +3211,7 @@ class QueryTest extends TestCase
         $small = 0.123456789012345;
         $entity = $table->newEntity(['fraction' => $small]);
 
-        $table->save($entity);
+        $table->saveOrFail($entity);
         $out = $table->find()
             ->where([
                 'fraction' => $small,