/**
  * Test the Joomla\Log\Logger\Database::addEntry method.
  *
  * @return  void
  *
  * @since   1.0
  */
 public function testAddEntry01()
 {
     $config = array('db' => self::$driver);
     $logger = new Database($config);
     // Get the expected database from XML.
     $expected = $this->createXMLDataSet(__DIR__ . '/stubs/S01E01.xml');
     // Add the new entries to the database.
     $logger->addEntry(new LogEntry('Testing Entry 02', Log::INFO, null, '2009-12-01 12:30:00'));
     $logger->addEntry(new LogEntry('Testing3', Log::EMERGENCY, 'deprecated', '2010-12-01 02:30:00'));
     // Get the actual dataset from the database.
     $actual = new \PHPUnit_Extensions_Database_DataSet_QueryDataSet($this->getConnection());
     $actual->addTable('jos_log_entries');
     // Verify that the data sets are equal.
     $this->assertDataSetsEqual($expected, $actual);
 }