Ejemplo n.º 1
0
 /**
  * @depends test_has_files
  */
 public function test_get_file_path()
 {
     $data = array('author' => 100, 'title' => 'A survey', 'files' => array('xml' => 'survey_1_xml.xml', 'xls' => NULL));
     $survey = new Survey_entity($data);
     $this->assertEquals('survey_1_xml.xml', $survey->get_xml_full_path());
     $this->assertEquals(100, $survey->author);
     $this->assertFalse($survey->get_xls_full_path());
     $survey->set_file_location('file/location/');
     $this->assertEquals('file/location/survey_1_xml.xml', $survey->get_xml_full_path());
 }