function testCount1() { $sitemap = new Elite_Vafsitemap_Model_Sitemap_Vehicle(VF_Singleton::getInstance()->getConfig()); $vehicle = $this->createMMTC(); $this->insertMappingMMTC($vehicle); $this->assertEquals(1, $sitemap->vehicleCount()); }
function testWhenThereIsNotAMappingShouldNotCountTheDefinition() { $sitemap = new Elite_Vafsitemap_Model_Sitemap_Vehicle(Elite_Vaf_Helper_Data::getInstance()->getConfig()); $this->assertEquals(0, $sitemap->vehicleCount(), 'when there is not a mapping should not count the definition'); }