Commit 25dae913 authored by Tino Goratsch's avatar Tino Goratsch

fixed the unit tests

parent ff6a124b
......@@ -21,6 +21,8 @@ class StepsTest extends \ACP3\Core\Test\Breadcrumb\StepsTest
{
$this->initializeMockObjects();
$this->setUpMenuItemRepositoryExpectations();
$this->steps = new Steps(
$this->containerMock,
$this->translatorMock,
......@@ -39,4 +41,12 @@ class StepsTest extends \ACP3\Core\Test\Breadcrumb\StepsTest
->disableOriginalConstructor()
->getMock();
}
protected function setUpMenuItemRepositoryExpectations()
{
$this->menuItemRepositoryMock->expects($this->once())
->method('getMenuItemsByUri')
->withAnyParameters()
->willReturn([]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment