예제 #1
0
 public function testGetLicenseRefs()
 {
     $this->testDb->createPlainTables(array('license_ref'));
     $this->testDb->insertData_license_ref();
     $licDao = new LicenseDao($this->dbManager);
     $licAll = $licDao->getLicenseRefs();
     $cntA = $this->dbManager->getSingleRow("Select count(*) cnt from license_ref limit 1");
     $this->assertEquals($cntA['cnt'], count($licAll));
     $this->assertInstanceOf('Fossology\\Lib\\Data\\LicenseRef', $licAll[0]);
 }