mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
update wrong auth test
This commit is contained in:
parent
e4f0be4edb
commit
02e848852f
4 changed files with 55 additions and 62 deletions
|
|
@ -51,22 +51,6 @@ class ServerTest extends TestCase {
|
|||
$this->assertContains($this->config->share, $names);
|
||||
}
|
||||
|
||||
public function testWrongUserName() {
|
||||
$this->expectException(AuthenticationException::class);
|
||||
$server = new Server(
|
||||
$this->config->host,
|
||||
new BasicAuth(
|
||||
uniqid(),
|
||||
'test',
|
||||
uniqid()
|
||||
),
|
||||
new System(),
|
||||
new TimeZoneProvider(new System()),
|
||||
new Options()
|
||||
);
|
||||
$server->listShares();
|
||||
}
|
||||
|
||||
public function testWrongPassword() {
|
||||
$this->expectException(AuthenticationException::class);
|
||||
$server = new Server(
|
||||
|
|
@ -165,8 +149,6 @@ class ServerTest extends TestCase {
|
|||
$this->markTestSkipped("Server seems to accept NT1 connections");
|
||||
} catch (ConnectionRefusedException $e) {
|
||||
$this->assertTrue(true);
|
||||
} catch (\Exception $e) {
|
||||
$this->fail("Wrong exception");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue