mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Capitalize UUID acronym
This commit is contained in:
parent
8f9b75d016
commit
81c2e9db84
2 changed files with 4 additions and 4 deletions
|
@ -431,7 +431,7 @@ class SqliteTest extends CakeTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
@ -441,7 +441,7 @@ class SqliteTest extends CakeTestCase {
|
|||
$Model = ClassRegistry::init('Uuid');
|
||||
|
||||
$data = array(
|
||||
'title' => 'A uuid should work',
|
||||
'title' => 'A UUID should work',
|
||||
'count' => 10
|
||||
);
|
||||
$Model->create($data);
|
||||
|
@ -449,7 +449,7 @@ class SqliteTest extends CakeTestCase {
|
|||
$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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -791,7 +791,7 @@ class Validation {
|
|||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
|
Loading…
Reference in a new issue