public function testApiAppend_CallsUpdateOnModel_WithExistingContents() { $path = 'path'; $write = 'write'; $read = 'read'; $this->expect('read', [$path])->willReturn($read); $this->expect('update', [$path, $read . $write]); $this->fs->append($path, $write); }