/** * Test... * * @covers Joomla\Language\Language::hasKey * @todo Implement testHasKey(). * * @return void */ public function testHasKey() { // Key doesn't exist, returns false $this->assertFalse($this->object->hasKey('com_admin.key')); // Remove the following lines when you implement this test. $this->markTestIncomplete('This test has not been implemented yet.'); }
/** * Test... * * @covers Joomla\Language\Language::hasKey * * @return void * * @since 1.0 */ public function testHasKey() { // Key doesn't exist, returns false $this->assertFalse($this->object->hasKey('com_admin.key')); TestHelper::setValue($this->object, 'strings', array('COM_ADMIN.KEY' => 'A key')); $this->assertTrue($this->object->hasKey('com_admin.key')); }