mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Customize: Implement customized state persistence with changesets.
Includes infrastructure developed in the Customize Snapshots feature plugin. See https://make.wordpress.org/core/2016/10/12/customize-changesets-technical-design-decisions/ Props westonruter, valendesigns, utkarshpatel, stubgo, lgedeon, ocean90, ryankienstra, mihai2u, dlh, aaroncampbell, jonathanbardo, jorbin. See #28721. See #31089. Fixes #30937. Fixes #31517. Fixes #30028. Fixes #23225. Fixes #34142. Fixes #36485. git-svn-id: https://develop.svn.wordpress.org/trunk@38810 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -880,4 +880,22 @@ class Tests_Functions extends WP_UnitTestCase {
|
||||
$this->assertSame( false, $raised_limit );
|
||||
$this->assertEquals( WP_MAX_MEMORY_LIMIT, $ini_limit_after );
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests wp_generate_uuid4().
|
||||
*
|
||||
* @covers wp_generate_uuid4()
|
||||
* @ticket 38164
|
||||
*/
|
||||
function test_wp_generate_uuid4() {
|
||||
$uuids = array();
|
||||
for ( $i = 0; $i < 20; $i += 1 ) {
|
||||
$uuid = wp_generate_uuid4();
|
||||
$this->assertRegExp( '/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/', $uuid );
|
||||
$uuids[] = $uuid;
|
||||
}
|
||||
|
||||
$unique_uuids = array_unique( $uuids );
|
||||
$this->assertEquals( $uuids, $unique_uuids );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user