Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function testConstructorWithOnlyRequiredArguments() { |
||
19 | $entityId = new ItemId( 'Q1' ); |
||
20 | $exception = new TermLookupException( $entityId, [ 'de', 'en' ] ); |
||
21 | |||
22 | $this->assertSame( $entityId, $exception->getEntityId() ); |
||
23 | $this->assertSame( |
||
24 | 'Term lookup failed for: Q1 with language codes: de, en', |
||
25 | $exception->getMessage() |
||
26 | ); |
||
27 | $this->assertSame( 0, $exception->getCode() ); |
||
28 | $this->assertNull( $exception->getPrevious() ); |
||
29 | } |
||
30 | |||
48 |