/**
  * @testdox  Tests that data is read from the application configuration successfully.
  *
  * @covers  JApplicationBase::get
  * @uses    JApplicationBase::setConfiguration
  */
 public function testGet()
 {
     $mockConfig = $this->getMock('Joomla\\Registry\\Registry', array('get'), array(array('foo' => 'bar')), '', true, true, true, false, true);
     // Inject the mock config
     $this->class->setConfiguration($mockConfig);
     $this->assertSame('bar', $this->class->get('foo', 'car'), 'Checks a known configuration setting is returned.');
     $this->assertSame('car', $this->class->get('goo', 'car'), 'Checks an unknown configuration setting returns the default.');
 }
 /**
  * @testdox  Tests that the application configuration is overwritten successfully.
  *
  * @covers  JApplicationBase::setConfiguration
  */
 public function testSetConfiguration()
 {
     $mockConfig = $this->getMock('Joomla\\Registry\\Registry');
     $this->class->setConfiguration($mockConfig);
     $this->assertAttributeSame($mockConfig, 'config', $this->class);
 }