Fix broken tests due to grapping around...
This commit is contained in:
parent
cdfbc60030
commit
47eec0398d
8 changed files with 11 additions and 11 deletions
|
@ -46,10 +46,10 @@ class UsernameGenerationServiceTest extends TestCase
|
|||
|
||||
$this->service = new UsernameGenerationService();
|
||||
|
||||
$this->getFunctionMock('\\Pterodactyl\\Service\\Servers', 'bin2hex')
|
||||
$this->getFunctionMock('\\Pterodactyl\\Services\\Servers', 'bin2hex')
|
||||
->expects($this->any())->willReturn('dddddddd');
|
||||
|
||||
$this->getFunctionMock('\\Pterodactyl\\Service\\Servers', 'str_random')
|
||||
$this->getFunctionMock('\\Pterodactyl\\Services\\Servers', 'str_random')
|
||||
->expects($this->any())->willReturnCallback(function ($count) {
|
||||
return str_pad('', $count, 'a');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue