session_start(); if (file_exists('../config.php')) { require_once '../config.php'; } else { require_once '../config.default.php'; } require_once getenv('PHP_MAGE_PATH') . '/app/code/local/Elite/Vaf/bootstrap-tests.php'; $schemaGenerator = new VF_Schema_Generator(); $schemaGenerator->dropExistingTables(); $schemaGenerator->execute(array('make', 'model', 'year')); $schema = new VF_Schema(); $vehicle = VF_Vehicle::create($schema, array('make' => 'Honda_Unique' . uniqid(), 'model' => 'Civic', 'year' => '2002')); $vehicle->save(); $magento_product = new Elite_Vaf_Model_Catalog_Product(); $magento_product->setId(1); $magento_product->addVafFit($vehicle->toValueArray()); $values = $vehicle->toValueArray(); file_put_contents(sys_get_temp_dir() . '/vf-ajax-tests', '1'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="stylesheet" href="../qunit/qunit.css" type="text/css"/> <link rel="stylesheet" href="/skin/adminhtml/default/default/multiTree.css" type="text/css"/> </head> <body> <h1 id="qunit-header">VAF - Multi Tree</h1> <h2 id="qunit-banner"></h2> <h2 id="qunit-userAgent"></h2> <ol id="qunit-tests">