Fix broken tests due to grapping around...

This commit is contained in:
Dane Everitt 2017-08-20 19:51:15 -05:00
parent cdfbc60030
commit 47eec0398d
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
8 changed files with 11 additions and 11 deletions

View file

@ -97,14 +97,14 @@ class UpdateServiceTest extends TestCase
*/
public function testNodeIsUpdatedAndDaemonSecretIsReset()
{
$this->getFunctionMock('\\Pterodactyl\\Service\\Nodes', 'random_bytes')
$this->getFunctionMock('\\Pterodactyl\\Services\\Nodes', 'random_bytes')
->expects($this->once())->willReturnCallback(function ($bytes) {
$this->assertEquals(CreationService::DAEMON_SECRET_LENGTH, $bytes);
return '\00';
});
$this->getFunctionMock('\\Pterodactyl\\Service\\Nodes', 'bin2hex')
$this->getFunctionMock('\\Pterodactyl\\Services\\Nodes', 'bin2hex')
->expects($this->once())->willReturn('hexResponse');
$this->repository->shouldReceive('withoutFresh')->withNoArgs()->once()->andReturnSelf()