mirror of
https://github.com/friendica/friendica
synced 2024-12-31 22:42:21 +00:00
adjust tests
This commit is contained in:
parent
0ab9c23bb9
commit
ea07b83fd0
1 changed files with 1 additions and 3 deletions
|
@ -18,9 +18,7 @@ class AppTest extends TestCase
|
||||||
public function testFromDiceReturnsApp(): void
|
public function testFromDiceReturnsApp(): void
|
||||||
{
|
{
|
||||||
$dice = $this->createMock(Dice::class);
|
$dice = $this->createMock(Dice::class);
|
||||||
$dice->expects($this->exactly(11))->method('create')->willReturnCallback(function($classname) {
|
$dice->expects($this->never())->method('create');
|
||||||
return $this->createMock($classname);
|
|
||||||
});
|
|
||||||
|
|
||||||
$app = App::fromDice($dice);
|
$app = App::fromDice($dice);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue