public function testPrepareFaviconDefault() { $defaultFilePath = 'default_file'; $this->pageConfigMock->expects($this->once())->method('getFaviconFile')->willReturn(false); $this->pageConfigMock->expects($this->exactly(2))->method('getDefaultFavicon')->willReturn($defaultFilePath); $this->pageConfigMock->expects($this->exactly(2))->method('addPageAsset')->withConsecutive([$defaultFilePath, ['attributes' => ['rel' => 'icon', 'type' => 'image/x-icon']], 'icon'], [$defaultFilePath, ['attributes' => ['rel' => 'shortcut icon', 'type' => 'image/x-icon']], 'shortcut-icon']); $this->renderer->prepareFavicon(); }