| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | public function testConstructorWithOnlyRequiredArguments() { |
||
| 19 | $entityId = new ItemId( 'Q1' ); |
||
| 20 | $exception = new EntityRedirectLookupException( $entityId ); |
||
| 21 | |||
| 22 | $this->assertSame( $entityId, $exception->getEntityId() ); |
||
| 23 | $this->assertSame( 'Entity redirect lookup failed for: Q1', $exception->getMessage() ); |
||
| 24 | $this->assertSame( 0, $exception->getCode() ); |
||
| 25 | $this->assertNull( $exception->getPrevious() ); |
||
| 26 | } |
||
| 27 | |||
| 40 |