mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
better wrong username test again
This commit is contained in:
parent
56da52bc1b
commit
9db846f473
1 changed files with 2 additions and 5 deletions
|
|
@ -11,6 +11,7 @@ use Icewind\SMB\ACL;
|
||||||
use Icewind\SMB\BasicAuth;
|
use Icewind\SMB\BasicAuth;
|
||||||
use Icewind\SMB\Exception\AccessDeniedException;
|
use Icewind\SMB\Exception\AccessDeniedException;
|
||||||
use Icewind\SMB\Exception\AlreadyExistsException;
|
use Icewind\SMB\Exception\AlreadyExistsException;
|
||||||
|
use Icewind\SMB\Exception\ConnectException;
|
||||||
use Icewind\SMB\Exception\ConnectionException;
|
use Icewind\SMB\Exception\ConnectionException;
|
||||||
use Icewind\SMB\Exception\ConnectionRefusedException;
|
use Icewind\SMB\Exception\ConnectionRefusedException;
|
||||||
use Icewind\SMB\Exception\FileInUseException;
|
use Icewind\SMB\Exception\FileInUseException;
|
||||||
|
|
@ -788,13 +789,9 @@ abstract class AbstractShareTest extends TestCase {
|
||||||
$share = $server->getShare($this->config->share);
|
$share = $server->getShare($this->config->share);
|
||||||
$share->dir("");
|
$share->dir("");
|
||||||
$this->fail("Expected exception");
|
$this->fail("Expected exception");
|
||||||
} catch (AccessDeniedException $e) {
|
|
||||||
$this->assertTrue(true);
|
|
||||||
} catch (ForbiddenException $e) {
|
} catch (ForbiddenException $e) {
|
||||||
$this->assertTrue(true);
|
$this->assertTrue(true);
|
||||||
} catch (ConnectionRefusedException $e) {
|
} catch (ConnectException $e) {
|
||||||
$this->assertTrue(true);
|
|
||||||
} catch (ConnectionException $e) {
|
|
||||||
$this->assertTrue(true);
|
$this->assertTrue(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue