| Total Complexity | 7 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class StandardTest extends \PHPUnit\Framework\TestCase |
||
| 7 | { |
||
| 8 | private $config; |
||
| 9 | private $object; |
||
| 10 | |||
| 11 | |||
| 12 | protected function setUp() : void |
||
| 16 | } |
||
| 17 | |||
| 18 | |||
| 19 | protected function tearDown() : void |
||
| 20 | { |
||
| 21 | unset( $this->object ); |
||
| 22 | } |
||
| 23 | |||
| 24 | |||
| 25 | public function testClone() |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | public function testGet() |
||
| 33 | { |
||
| 34 | $this->config->set( 'resource/mq-email', array( 'adapter' => 'None' ) ); |
||
| 35 | $this->assertInstanceof( 'Aimeos\Base\MQueue\Iface', $this->object->get( 'mq-email' ) ); |
||
| 36 | } |
||
| 37 | |||
| 38 | |||
| 39 | public function testGetFallback() |
||
| 40 | { |
||
| 41 | $this->config->set( 'resource/mq', array( 'adapter' => 'None' ) ); |
||
| 42 | $this->assertInstanceof( 'Aimeos\Base\MQueue\Iface', $this->object->get( 'mq-email' ) ); |
||
| 43 | } |
||
| 44 | |||
| 45 | |||
| 46 | public function testGetException() |
||
| 47 | { |
||
| 48 | $object = new \Aimeos\Base\MQueue\Manager\Standard( [] ); |
||
| 49 | |||
| 50 | $this->expectException( \Aimeos\Base\MQueue\Exception::class ); |
||
| 51 | $object->get( 'xx' ); |
||
| 52 | } |
||
| 53 | |||
| 54 | |||
| 55 | public function testGetDatabaseConfig() |
||
| 59 | } |
||
| 60 | } |
||
| 61 |