public function testSaveInsertZeroOnPrimaryKey() { $test = UnitTest::create(array('id' => 0, 'integer_value' => 123, 'string_value' => 'asdf', 'email_value' => '*****@*****.**')); $this->assertFalse(UnitTest::exists(0)); $test = UnitTest::find('first', array('conditions' => "string_value = 'asdf'")); $this->assertInstanceOf('UnitTest', $test); }