Skip to content

Commit

Permalink
Fix time related test
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Mar 11, 2015
1 parent 0b9a140 commit f50650b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/TestCase/Database/Type/DateTimeTypeTest.php
Expand Up @@ -25,6 +25,13 @@
class DateTimeTypeTest extends TestCase
{

/**
* Original type map
*
* @var array
*/
protected $_originalMap = [];

/**
* Setup
*
Expand All @@ -35,6 +42,19 @@ public function setUp()
parent::setUp();
$this->type = Type::build('datetime');
$this->driver = $this->getMock('Cake\Database\Driver');
$this->_originalMap = Type::map();
}

/**
* Restores Type class state
*
* @return void
*/
public function tearDown()
{
parent::tearDown();

Type::map($this->_originalMap);
}

/**
Expand Down

0 comments on commit f50650b

Please sign in to comment.