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 testCreateDirWithDbFailure() { $this->setupBasicDbResponse(false); $meta = $this->adapter->createDir('/path', $this->emptyConfig); $this->assertFalse($meta); }