Skip to content

Commit

Permalink
Capitalize UUID acronym
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Crowe committed Oct 9, 2013
1 parent 8f9b75d commit 81c2e9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/Model/Datasource/Database/SqliteTest.php
Expand Up @@ -431,7 +431,7 @@ public function testVirtualFieldWithFunction() {
}

/**
* Test that records can be inserted with uuid primary keys, and
* Test that records can be inserted with UUID primary keys, and
* that the primary key is not blank
*
* @return void
Expand All @@ -441,15 +441,15 @@ public function testUuidPrimaryKeyInsertion() {
$Model = ClassRegistry::init('Uuid');

$data = array(
'title' => 'A uuid should work',
'title' => 'A UUID should work',
'count' => 10
);
$Model->create($data);
$this->assertTrue((bool)$Model->save());
$result = $Model->read();

$this->assertEquals($data['title'], $result['Uuid']['title']);
$this->assertTrue(Validation::uuid($result['Uuid']['id']), 'Not a uuid');
$this->assertTrue(Validation::uuid($result['Uuid']['id']), 'Not a UUID');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Validation.php
Expand Up @@ -791,7 +791,7 @@ public static function userDefined($check, $object, $method, $args = null) {
}

/**
* Checks that a value is a valid uuid - http://tools.ietf.org/html/rfc4122
* Checks that a value is a valid UUID - http://tools.ietf.org/html/rfc4122
*
* @param string $check Value to check
* @return boolean Success
Expand Down

0 comments on commit 81c2e9d

Please sign in to comment.