public function testGetAttributes() { $resultValue = 'test'; $this->resource->expects($this->any())->method('loadAllAttributes')->will($this->returnSelf()); $this->resource->expects($this->any())->method('getSortedAttributes')->will($this->returnValue($resultValue)); $this->assertEquals($resultValue, $this->address->getAttributes()); }