Index: trunk/extensions/Translate/tests/MessageGroupBaseTest.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | } |
20 | 20 | |
21 | 21 | protected function tearDown() { |
22 | | - unset( $this->apple ); |
| 22 | + unset( $this->group ); |
23 | 23 | parent::tearDown(); |
24 | 24 | } |
25 | 25 | |
— | — | @@ -56,10 +56,11 @@ |
57 | 57 | |
58 | 58 | public function testGetNamespaceNumber() { |
59 | 59 | $conf = $this->groupConfiguration; |
60 | | - $conf['BASIC']['namespace'] = NS_MEDIAWIKI; |
| 60 | + $conf['BASIC']['namespace'] = NS_IMAGE; |
| 61 | + $this->group = MessageGroupBase::factory( $conf ); |
61 | 62 | |
62 | 63 | $this->assertEquals( |
63 | | - NS_MEDIAWIKI, |
| 64 | + NS_IMAGE, |
64 | 65 | $this->group->getNamespace(), |
65 | 66 | "should parse integer namespace number." |
66 | 67 | ); |
— | — | @@ -67,10 +68,11 @@ |
68 | 69 | |
69 | 70 | public function testGetNamespaceString() { |
70 | 71 | $conf = $this->groupConfiguration; |
71 | | - $conf['BASIC']['namespace'] = 'mediawiki'; |
| 72 | + $conf['BASIC']['namespace'] = 'image'; |
| 73 | + $this->group = MessageGroupBase::factory( $conf ); |
72 | 74 | |
73 | 75 | $this->assertEquals( |
74 | | - NS_MEDIAWIKI, |
| 76 | + NS_IMAGE, |
75 | 77 | $this->group->getNamespace(), |
76 | 78 | "should parse string namespace name." |
77 | 79 | ); |
— | — | @@ -83,6 +85,7 @@ |
84 | 86 | public function testGetNamespaceInvalid() { |
85 | 87 | $conf = $this->groupConfiguration; |
86 | 88 | $conf['BASIC']['namespace'] = 'ergweofijwef'; |
| 89 | + MessageGroupBase::factory( $conf ); |
87 | 90 | } |
88 | 91 | |
89 | 92 | } |