Browse Source

UUID values in SQLserver are always uppercased.

This is in contrast to Text::uuid() which makes lowercase values.
Normalizing the values allows the tests to pass on all supported dbs.
Mark Story 11 years ago
parent
commit
c096aa3573
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/ORM/TableUuidTest.php

+ 1 - 1
tests/TestCase/ORM/TableUuidTest.php

@@ -100,7 +100,7 @@ class TableUuidTest extends TestCase
 
         $row = $table->find('all')->where(['id' => $id])->first();
         $this->assertNotEmpty($row);
-        $this->assertSame($id, $row->id);
+        $this->assertSame($id, strtolower($row->id));
         $this->assertSame($entity->name, $row->name);
     }