From 8eef675a86004729d58fd2945b03fdb2b4522218 Mon Sep 17 00:00:00 2001
From: ygerasimov <yuri.gerasimov@gmail.com>
Date: Tue, 15 Mar 2011 22:21:37 +0200
Subject: [PATCH] fix exception in node resource.

---
 tests/functional/ServicesResourceNodeTests.test |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/functional/ServicesResourceNodeTests.test b/tests/functional/ServicesResourceNodeTests.test
index 8f5e740..73a40e1 100644
--- a/tests/functional/ServicesResourceNodeTests.test
+++ b/tests/functional/ServicesResourceNodeTests.test
@@ -199,7 +199,7 @@ class ServicesResourceNodetests extends ServicesWebTestCase {
 
     $responseArray = $this->servicesPut($this->endpoint->path . '/node/' . $node->nid, array('node' => $node_update));
     // Load node not from cache.
-    $nodeAfterUpdate = node_load($responseArray['body'], NULL, TRUE);
+    $nodeAfterUpdate = node_load($responseArray['body']['nid'], NULL, TRUE);
     $this->assertTrue(isset($nodeAfterUpdate->nid), t('Node was successfully updated'), 'NodeResource: Updated');
     $this->assertEqual($nodeAfterUpdate->title, $node_update->title, t('Title is the same'), 'NodeResource: Update');
     $this->assertEqual($nodeAfterUpdate->body[LANGUAGE_NONE][0]['value'], $node_update->body[LANGUAGE_NONE][0]['value'], t('Body is the same'), 'NodeResource: Update');
-- 
1.7.0.4

