ItemLookupExceptionTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstructorWithJustAnId() 0 7 1
1
<?php
2
3
namespace Wikibase\DataModel\Services\Tests\Lookup;
4
5
use PHPUnit\Framework\TestCase;
6
use Wikibase\DataModel\Entity\ItemId;
7
use Wikibase\DataModel\Services\Lookup\ItemLookupException;
8
9
/**
10
 * @covers \Wikibase\DataModel\Services\Lookup\ItemLookupException
11
 *
12
 * @license GPL-2.0-or-later
13
 * @author Addshore
14
 */
15
class ItemLookupExceptionTest extends TestCase {
16
17
	public function testConstructorWithJustAnId() {
18
		$itemId = new ItemId( 'Q123' );
19
		$exception = new ItemLookupException( $itemId );
20
21
		$this->assertEquals( $itemId, $exception->getEntityId() );
22
		$this->assertEquals( $itemId, $exception->getItemId() );
23
	}
24
25
}
26