Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | public function testGetKeys() { |
||
44 | |||
45 | $instance = new GlossaryCache(); |
||
46 | |||
47 | $subject = $this->getMockBuilder( '\SMW\DIWikiPage' ) |
||
48 | ->disableOriginalConstructor() |
||
49 | ->getMock(); |
||
50 | |||
51 | $subject->expects( $this->once() ) |
||
52 | ->method( 'getSerialization' ) |
||
53 | ->will( $this->returnValue( 'Foo' ) ); |
||
54 | |||
55 | $this->assertInternalType( |
||
56 | 'string', |
||
57 | $instance->getKeyForSubject( $subject ) |
||
58 | ); |
||
59 | |||
60 | $this->assertInternalType( |
||
61 | 'string', |
||
62 | $instance->getKeyForLingo() |
||
63 | ); |
||
64 | } |
||
65 | |||
67 |