Browse Source

Improve tests

ADmad 10 years ago
parent
commit
1d3c554a14
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/TestCase/ORM/TableTest.php

+ 4 - 0
tests/TestCase/ORM/TableTest.php

@@ -2791,8 +2791,12 @@ class TableTest extends TestCase
 
         $table = TableRegistry::get('authors');
         $result = $table->saveMany($entities);
+
         $this->assertSame($entities, $result);
         $this->assertTrue(isset($result[0]->id));
+        foreach ($entities as $entity) {
+            $this->assertFalse($entity->isNew());
+        }
     }
 
     /**