public static function MockData::getUniqueInt in GatherContent 8.4
Same name and namespace in other branches
- 8.5 tests/modules/gathercontent_test/src/MockData.php \Drupal\gathercontent_test\MockData::getUniqueInt()
Utility function.
2 calls to MockData::getUniqueInt()
- MockData::createFile in tests/
modules/ gathercontent_test/ src/ MockData.php - Create a file for every file element in item.
- MockData::createItem in tests/
modules/ gathercontent_test/ src/ MockData.php - Creates a GC Item corresponding to a mapping.
File
- tests/
modules/ gathercontent_test/ src/ MockData.php, line 32
Class
- MockData
- A class for getting static test data.
Namespace
Drupal\gathercontent_testCode
public static function getUniqueInt() {
static $counter = 1;
return $counter++;
}