1
0
mirror of synced 2025-03-14 00:26:08 +03:00

Checking for boolean true/false identifiers

This commit is contained in:
Marco Pivetta 2016-07-07 19:38:48 +02:00
parent 29d9f344e8
commit aa1fda6d5f

View File

@ -405,11 +405,21 @@ class UnitOfWorkTest extends OrmTestCase
$nonEmptyStrings->id1 = uniqid('id1', true);
$nonEmptyStrings->id2 = uniqid('id2', true);
$booleanTrue = new EntityWithBooleanIdentifier();
$booleanTrue->id = true;
$booleanFalse = new EntityWithBooleanIdentifier();
$booleanFalse->id = false;
return [
'empty string, single field' => [$emptyString, ''],
'non-empty string, single field' => [$nonEmptyString, $nonEmptyString->id],
'empty strings, two fields' => [$emptyStrings, ' '],
'non-empty strings, two fields' => [$nonEmptyStrings, $nonEmptyStrings->id1 . ' ' . $nonEmptyStrings->id2],
'boolean true' => [$booleanTrue, '1'],
'boolean false' => [$booleanTrue, ''],
];
}
}