Browse Source

SQL Server normalizes uuids to uppercase, fixing test accordingly

Jose Lorenzo Rodriguez 12 years ago
parent
commit
5bab330a53
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/ORM/TableUuidTest.php

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

@@ -94,6 +94,7 @@ class TableUuidTest extends TestCase {
 		$this->assertEquals($id, $entity->id, 'Should be 36 characters');
 
 		$row = $table->find('all')->where(['id' => $entity->id])->first();
+		$row->id = strtolower($row->id);
 		$this->assertEquals($entity->toArray(), $row->toArray());
 	}