/[volute]/trunk/projects/grid/vospace/php_endpoint/tests/test_node.php
ViewVC logotype

Diff of /trunk/projects/grid/vospace/php_endpoint/tests/test_node.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 733 by richard.p.wagner, Tue Aug 19 05:41:49 2008 UTC revision 734 by richard.p.wagner, Tue Aug 19 19:37:17 2008 UTC
# Line 6  Line 6 
6  require_once(SIMPLE_TEST . 'reporter.php');  require_once(SIMPLE_TEST . 'reporter.php');
7    
8  require_once(BACKEND.'node.php');  require_once(BACKEND.'node.php');
9    require_once(BACKEND.'vospace.php');
10    
11  class TestNode extends UnitTestCase {  class TestNode extends UnitTestCase {
12    
# Line 34  Line 35 
35      $this->assertEqual( $this->node->properties[0]["_"], "2821");      $this->assertEqual( $this->node->properties[0]["_"], "2821");
36      $this->assertEqual( $this->node->properties[1]["_"], DATA_OWNER);      $this->assertEqual( $this->node->properties[1]["_"], DATA_OWNER);
37    }    }
 }  
38    
39      function testGetProtocols(){
40        $protocols = $this->node->getProtocols();
41        $this->assertEqual( $protocols['endpoint'],
42                            'http://cadac-dev.ucsd.edu/vos/vospace/backends/file_system/sample_data/bill_of_rights.txt');
43      }
44    }
45    
46  $test = &new TestNode();  $test = &new TestNode();
47  $test->run(new HtmlReporter());  $test->run(new HtmlReporter());

Legend:
Removed from v.733  
changed lines
  Added in v.734

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26