static::
assertEquals($localeId,
$data['locale_id'
]);
static::
assertTrue($data['admin'
]);
static::
assertTrue($data['active'
]);
return password_verify('shopware',
(string) $data['password'
]);
}) );
$connection->
expects(static::
once())->
method('fetchOne'
)->
willReturn(json_encode(['_value' => 8
]));
$connection->
method('createQueryBuilder'
)->
willReturnOnConsecutiveCalls( new FakeQueryBuilder($connection,
[]),
new FakeQueryBuilder($connection,
[[$localeId]]) );
$user =
[ 'username' => 'admin',
'password' => 'shopware',
'firstName' => 'first',
'lastName' => 'last',
'email' => 'test@test.com',
];