/**
  * testRecursiveSources
  *
  * @return void
  * @access public
  */
 function testRecursiveSources()
 {
     $config = array_merge($this->config, array('recursive' => true));
     $this->Csv =& new CsvSource($config);
     $expected = array('posts', 'users', 'second_level' . DS . 'things');
     $result = $this->Csv->listSources();
     $this->assertIdentical($expected, $result);
 }
Beispiel #2
0
 /**
  * testClose
  *
  * @return void
  */
 public function testClose()
 {
     // Add new db config
     ConnectionManager::create('test_csv', $this->config);
     $model = ClassRegistry::init('BlogTest');
     $this->Csv->close();
     $this->assertFalse($this->Csv->connected);
     $this->assertEmpty($this->Csv->handle);
 }