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

MySQLTest::testGetSubManager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 7
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 10
rs 10
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 MySQLTest 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\MySQL( \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