add some data to user before saving it
This commit is contained in:
parent
3593c88dc0
commit
d9947fd3ab
1 changed files with 4 additions and 0 deletions
|
@ -62,7 +62,11 @@ class CorporateCustomerBuilderTest extends TestCase
|
|||
|
||||
ServiceLocator::set(CollectorCookieExtractor::class, $cookieExtractorMock);
|
||||
|
||||
$userLogin = uniqid('testuser_');
|
||||
$user = new User();
|
||||
$user->setLogin($userLogin);
|
||||
$user->setName($userLogin);
|
||||
$user->setEmail($userLogin . '@example.com');
|
||||
$user->setWorkCompany('WorkCompany');
|
||||
self::assertTrue($user->save()->isSuccess());
|
||||
self::assertNotNull($user->getId(), "User wasn't added to DB");
|
||||
|
|
Loading…
Add table
Reference in a new issue