updated uuid contrib module
This commit is contained in:
@@ -6,11 +6,9 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* UUID test helper trait.
|
||||
*
|
||||
* Contains methods that assist with running UUID tests.
|
||||
* Base class with some helper methods.
|
||||
*/
|
||||
trait UUIDTestHelper {
|
||||
abstract class UUIDTestCase extends DrupalWebTestCase {
|
||||
|
||||
/**
|
||||
* Helper function that asserts a UUID.
|
||||
@@ -21,15 +19,6 @@ trait UUIDTestHelper {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Base class with some helper methods.
|
||||
*/
|
||||
abstract class UUIDTestCase extends DrupalWebTestCase {
|
||||
|
||||
use UUIDTestHelper;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the UUID API functions.
|
||||
*/
|
||||
@@ -488,8 +477,6 @@ class UUIDNodeTestCase extends UUIDTestCase {
|
||||
*/
|
||||
class UUIDCommentTestCase extends CommentHelperCase {
|
||||
|
||||
use UUIDTestHelper;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
@@ -501,6 +488,13 @@ class UUIDCommentTestCase extends CommentHelperCase {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function that asserts a UUID.
|
||||
*/
|
||||
protected function assertUuid($uuid, $message = NULL) {
|
||||
$this->assertTrue(uuid_is_valid($uuid), $message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test CRUD on comments with UUID functions.
|
||||
*/
|
||||
@@ -559,8 +553,6 @@ class UUIDCommentTestCase extends CommentHelperCase {
|
||||
*/
|
||||
class UUIDTaxonomyTestCase extends TaxonomyWebTestCase {
|
||||
|
||||
use UUIDTestHelper;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
@@ -588,6 +580,13 @@ class UUIDTaxonomyTestCase extends TaxonomyWebTestCase {
|
||||
parent::setUp($modules);
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function that asserts a UUID.
|
||||
*/
|
||||
protected function assertUuid($uuid, $message = NULL) {
|
||||
$this->assertTrue(uuid_is_valid($uuid), $message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test CRUD on comments with UUID functions.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user