mirror of
https://github.com/friendica/friendica
synced 2025-04-29 17:44:24 +02:00
Reuse existing Strings::getRandomHex function
This commit is contained in:
parent
f4dfd4f649
commit
2b53784094
2 changed files with 3 additions and 28 deletions
|
@ -15,15 +15,11 @@ class WorkerLoggerTest extends MockedTest
|
|||
|
||||
/**
|
||||
* Test the a id with length zero
|
||||
* @expectedException
|
||||
* @expectedException \Error
|
||||
*/
|
||||
public function testGetWorkerIdZero()
|
||||
{
|
||||
$logger = \Mockery::mock(LoggerInterface::class);
|
||||
$logger
|
||||
->shouldReceive('alert')
|
||||
->with('id length must be greater than 0.')
|
||||
->once();
|
||||
new WorkerLogger($logger, 'test', 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue