protected function setUp()
{
parent::setUp();
self::restore_database();
// Add some computers
$computer = new Computer();
$pfAgent = new PluginFusioninventoryAgent();
$computer->add(array('name' => 'pc01', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 1, 'entities_id' => 0));
$computer->add(array('name' => 'pc02', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 2, 'entities_id' => 0));
$computer->add(array('name' => 'pc03', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 3, 'entities_id' => 0));
$computer->add(array('name' => 'pc04', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 4, 'entities_id' => 0));
$computer->add(array('name' => 'pc05', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 5, 'entities_id' => 0));
$computer->add(array('name' => 'pc06', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 6, 'entities_id' => 0));
$computer->add(array('name' => 'pc07', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 7, 'entities_id' => 0));
$computer->add(array('name' => 'pc08', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 8, 'entities_id' => 0));
$computer->add(array('name' => 'pc09', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 9, 'entities_id' => 0));
$computer->add(array('name' => 'pc10', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 10, 'entities_id' => 0));
$computer->add(array('name' => 'pc11', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 11, 'entities_id' => 0));
$computer->add(array('name' => 'pc12', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 12, 'entities_id' => 0));
$computer->add(array('name' => 'pc13', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 13, 'entities_id' => 0));
$computer->add(array('name' => 'srv01', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 14, 'entities_id' => 0));
$computer->add(array('name' => 'srv02', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 15, 'entities_id' => 0));
$computer->add(array('name' => 'srv03', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 16, 'entities_id' => 0));
$computer->add(array('name' => 'srv04', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 17, 'entities_id' => 0));
$computer->add(array('name' => 'srv05', 'entities_id' => 0));
$pfAgent->add(array('computers_id' => 18, 'entities_id' => 0));
}
请发表评论