mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
Basic test case for listShares
This commit is contained in:
parent
37fbf43f7d
commit
6c4587eb10
2 changed files with 14 additions and 0 deletions
|
|
@ -27,6 +27,16 @@ class Test extends PHPUnit_Framework_TestCase {
|
|||
$this->share->rmdir($this->root);
|
||||
}
|
||||
|
||||
public function testListShares() {
|
||||
$shares = $this->server->listShares();
|
||||
foreach ($shares as $share) {
|
||||
if ($share->getName() === 'test') {
|
||||
return;
|
||||
}
|
||||
}
|
||||
$this->fail('Share "test" not found');
|
||||
}
|
||||
|
||||
public function testDirectory() {
|
||||
$this->assertEquals(array(), $this->share->dir($this->root));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue