Completed
Push — master ( 110887...ff6c7f )
by Aimeos
10:07
created

BaseTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetTypeItemNotFound() 0 10 1
1
<?php
2
3
namespace Aimeos\Controller\Jobs;
4
5
6
/**
7
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
8
 * @copyright Aimeos (aimeos.org), 2015-2017
9
 */
10
class BaseTest extends \PHPUnit\Framework\TestCase
11
{
12
	public function testGetTypeItemNotFound()
13
	{
14
		$context = \TestHelperJobs::getContext();
15
		$aimeos = \TestHelperJobs::getAimeos();
16
17
		$object = new TestAbstract( $context, $aimeos );
18
19
		$this->setExpectedException( '\\Aimeos\\Controller\\Jobs\\Exception' );
20
		$object->getTypeItemPublic( 'product/type', 'product', 'test' );
21
	}
22
}
23
24
25
26
class TestAbstract extends \Aimeos\Controller\Jobs\Base
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class should be in its own file to aid autoloaders.

Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.

Loading history...
27
{
28
	public function getTypeItemPublic( $prefix, $domain, $code )
29
	{
30
		$this->getTypeItem( $prefix, $domain, $code );
31
	}
32
}