public function testDeletingDirectoryClearsAllFiles()
 {
     $this->adapter->createDir('/test', $this->emptyConfig);
     $this->adapter->write('/test/file.txt', '', $this->emptyConfig);
     $this->assertEquals(2, $this->getConnection()->getRowCount('flysystem_path'));
     $this->adapter->deleteDir('/test');
     $this->assertEquals(0, $this->getConnection()->getRowCount('flysystem_path'));
 }
 public function testDeleteDirWithDbFailure()
 {
     $this->setupBasicDbResponse(false);
     $this->assertFalse($this->adapter->deleteDir('/some-directory'));
 }