Passed
Push — master ( 8bf46b...192bc3 )
by Aimeos
06:59
created

PgSQLTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetSubManager() 0 10 1
1
<?php
2
3
/**
4
 * @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2020
6
 */
7
8
9
namespace Aimeos\MShop\Index\Manager;
10
11
12
class PgSQLTest extends \PHPUnit\Framework\TestCase
13
{
14
	public function testGetSubManager()
15
	{
16
		$class = \Aimeos\MShop\Common\Manager\Iface::class;
17
		$object = new \Aimeos\MShop\Index\Manager\PgSQL( \TestHelperMShop::getContext() );
18
19
		$this->assertInstanceOf( $class, $object->getSubManager( 'attribute' ) );
20
		$this->assertInstanceOf( $class, $object->getSubManager( 'catalog' ) );
21
		$this->assertInstanceOf( $class, $object->getSubManager( 'price' ) );
22
		$this->assertInstanceOf( $class, $object->getSubManager( 'supplier' ) );
23
		$this->assertInstanceOf( $class, $object->getSubManager( 'text' ) );
24
	}
25
}
26