forked from FOSSBilling/Proxmox
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris Schläpfer
committed
Oct 10, 2023
1 parent
2cb7b98
commit e61ac3d
Showing
4 changed files
with
143 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
|
||
namespace Box\Mod\Serviceproxmox; | ||
|
||
|
||
class AdminTest extends \BBTestCase | ||
{ | ||
|
||
/** | ||
* @var \Box\Mod\Serviceproxmox\Api\Admin | ||
*/ | ||
protected $api = null; | ||
|
||
public function setup(): void | ||
{ | ||
$this->api = new \Box\Mod\Serviceproxmox\Api\Admin(); | ||
} | ||
|
||
public function testgetDi() | ||
{ | ||
$di = new \Pimple\Container(); | ||
$this->api->setDi($di); | ||
$getDi = $this->api->getDi(); | ||
$this->assertEquals($di, $getDi); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
|
||
namespace Box\Mod\Serviceproxmox\Api; | ||
|
||
|
||
class ClientTest extends \BBTestCase { | ||
/** | ||
* @var \Box\Mod\Serviceproxmox\Api\Client | ||
*/ | ||
protected $api = null; | ||
|
||
public function setup(): void | ||
{ | ||
$this->api= new \Box\Mod\Serviceproxmox\Api\Client(); | ||
} | ||
|
||
public function testgetDi() | ||
{ | ||
$di = new \Pimple\Container(); | ||
$this->api->setDi($di); | ||
$getDi = $this->api->getDi(); | ||
$this->assertEquals($di, $getDi); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
|
||
namespace Box\Mod\Serviceproxmox; | ||
|
||
class ServiceTest extends \BBTestCase { | ||
/** | ||
* @var \Box\Mod\Serviceproxmox\Service | ||
*/ | ||
protected $service = null; | ||
|
||
public function setup(): void | ||
{ | ||
$this->service= new \Box\Mod\Serviceproxmox\Service(); | ||
} | ||
|
||
|
||
public function testgetDi() | ||
{ | ||
$di = new \Pimple\Container(); | ||
$this->service->setDi($di); | ||
$getDi = $this->service->getDi(); | ||
$this->assertEquals($di, $getDi); | ||
} | ||
|
||
|
||
|
||
|
||
} |