public function testRenderElementAttributes() { $elementType = 'elementType'; $attributes = ['attr1' => 'value1', 'attr2' => 'value2']; $expected = 'attr1="value1" attr2="value2"'; $this->pageConfigMock->expects($this->once())->method('getElementAttributes')->with($elementType)->willReturn($attributes); $this->assertEquals($expected, $this->renderer->renderElementAttributes($elementType)); }