public function testToTableRow() { $entityMock = $this->getMock('T4webDomainInterface\\EntityInterface'); $entityMock->expects($this->once())->method('extract')->with(['attribute'])->will($this->returnValue(['attribute' => 'attribute value'])); $actualTableRow = $this->mapper->toTableRow($entityMock); $expectedTableRow = ['column' => 'attribute value']; $this->assertEquals($expectedTableRow, $actualTableRow); }