/** * @test */ public function updateRecord() { $this->sharepointHandler->expects($this->once())->method('update')->will($this->returnValue(array(array('title' => 'Kleinhans', 'firstname' => 'Julian', 'linktitle' => 'Kleinhans', 'id' => 9, 'contenttype' => 'Kunden')))); $fixture = $this->getFixture(); $result = $fixture->updateRecord('{0344CAA0-94D5-40DE-A6EC-0D551BAC869D}', 9, array('title' => 'Kleinhans')); $this->assertSame('Kleinhans', $result[0]['title']); $this->assertSame('Julian', $result[0]['firstname']); $this->assertSame('Kleinhans', $result[0]['linktitle']); $this->assertSame(9, $result[0]['id']); $this->assertSame('Kunden', $result[0]['contenttype']); }