ソースを参照

Fix more tests in SQLServer.

Mark Story 4 年 前
コミット
7695ddf088

+ 3 - 0
tests/TestCase/Http/Session/DatabaseSessionTest.php

@@ -50,6 +50,9 @@ class DatabaseSessionTest extends TestCase
         parent::setUp();
         static::setAppNamespace();
         $this->storage = new DatabaseSession();
+
+        // With metadata caching on SQLServer/windows tests fail.
+        ConnectionManager::get('test')->cacheMetadata(false);
     }
 
     /**

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

@@ -91,6 +91,7 @@ class ColumnSchemaAwareTypeIntegrationTest extends TestCase
             });
 
         TypeFactory::set('text', $type);
+        TypeFactory::set('nvarchar', $type);
 
         $table->getSchema()->getColumn('val');
     }