mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
fix return values for smbclient backend
This commit is contained in:
parent
764f3fc793
commit
6e544f617c
2 changed files with 3 additions and 3 deletions
|
|
@ -370,7 +370,7 @@ class Share extends AbstractShare {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function parseOutput($lines, $path = '') {
|
protected function parseOutput($lines, $path = '') {
|
||||||
$this->parser->checkForError($lines, $path);
|
return $this->parser->checkForError($lines, $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,7 @@ abstract class AbstractShare extends TestCase {
|
||||||
$this->share->put($tmpFile, $this->root . '/' . $name);
|
$this->share->put($tmpFile, $this->root . '/' . $name);
|
||||||
unlink($tmpFile);
|
unlink($tmpFile);
|
||||||
|
|
||||||
$this->share->rename($this->root . '/' . $name, $this->root . '/' . $name . '_renamed');
|
$this->assertTrue($this->share->rename($this->root . '/' . $name, $this->root . '/' . $name . '_renamed'));
|
||||||
|
|
||||||
$files = $this->share->dir($this->root);
|
$files = $this->share->dir($this->root);
|
||||||
$this->assertEquals(1, count($files));
|
$this->assertEquals(1, count($files));
|
||||||
|
|
@ -224,7 +224,7 @@ abstract class AbstractShare extends TestCase {
|
||||||
unlink($tmpFile);
|
unlink($tmpFile);
|
||||||
|
|
||||||
$targetFile = tempnam('/tmp', 'smb_test_');
|
$targetFile = tempnam('/tmp', 'smb_test_');
|
||||||
$this->share->get($this->root . '/' . $name, $targetFile);
|
$this->assertTrue($this->share->get($this->root . '/' . $name, $targetFile));
|
||||||
|
|
||||||
$this->assertEquals($text, file_get_contents($targetFile));
|
$this->assertEquals($text, file_get_contents($targetFile));
|
||||||
unlink($targetFile);
|
unlink($targetFile);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue