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
|
|
@ -16,27 +16,9 @@ use Icewind\SMB\TimeZoneProvider;
|
|||
use Icewind\SMB\Wrapped\Server as NormalServer;
|
||||
|
||||
class ShareTest extends AbstractShareTest {
|
||||
public function setUp(): void {
|
||||
public function getServerClass(): string {
|
||||
$this->requireBackendEnv('smbclient');
|
||||
$this->config = json_decode(file_get_contents(__DIR__ . '/config.json'));
|
||||
$this->server = new NormalServer(
|
||||
$this->config->host,
|
||||
new BasicAuth(
|
||||
$this->config->user,
|
||||
'test',
|
||||
$this->config->password
|
||||
),
|
||||
new System(),
|
||||
new TimeZoneProvider(new System()),
|
||||
new Options()
|
||||
);
|
||||
$this->share = $this->server->getShare($this->config->share);
|
||||
if ($this->config->root) {
|
||||
$this->root = '/' . $this->config->root . '/' . uniqid();
|
||||
} else {
|
||||
$this->root = '/' . uniqid();
|
||||
}
|
||||
$this->share->mkdir($this->root);
|
||||
return NormalServer::class;
|
||||
}
|
||||
|
||||
public function testAppendStream() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue