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