Browse Source

Fix stupid mistake.

Mark Story 10 years ago
parent
commit
fad9daf852
1 changed files with 4 additions and 1 deletions
  1. 4 1
      tests/TestCase/Database/Type/FloatTypeTest.php

+ 4 - 1
tests/TestCase/Database/Type/FloatTypeTest.php

@@ -37,6 +37,7 @@ class FloatTypeTest extends TestCase
         $this->type = Type::build('float');
         $this->driver = $this->getMock('Cake\Database\Driver');
         $this->locale = I18n::locale();
+        $this->numberClass = FloatType::$numberClass;
 
         I18n::locale($this->locale);
     }
@@ -50,6 +51,7 @@ class FloatTypeTest extends TestCase
     {
         parent::tearDown();
         I18n::locale($this->locale);
+        FloatType::$numberClass = $this->numberClass;
     }
 
     /**
@@ -157,7 +159,8 @@ class FloatTypeTest extends TestCase
      */
     public function testUseLocaleParsingInvalid()
     {
-        $this->type->useLocaleParser('stdClass');
+        FloatType::$numberClass = 'stdClass';
+        $this->type->useLocaleParser();
     }
 
     /**