fix tests

This commit is contained in:
Etienne Roudeix
2013-09-26 10:43:09 +02:00
parent 24467edd29
commit 5e0f9cedf5
18 changed files with 497 additions and 226 deletions

View File

@@ -225,7 +225,7 @@ try {
for($i=0; $i<4; $i++) {
$feature = new Thelia\Model\Feature();
$feature->setVisible(1);
//$feature->setPosition($i);
$feature->setPosition($i);
setI18n($faker, $feature);
$feature->save();
@@ -249,7 +249,7 @@ try {
$attributeList = array();
for($i=0; $i<4; $i++) {
$attribute = new Thelia\Model\Attribute();
//$attribute->setPosition($i);
$attribute->setPosition($i);
setI18n($faker, $attribute);
$attribute->save();

View File

@@ -186,6 +186,7 @@ CREATE TABLE `feature`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`visible` INTEGER DEFAULT 0,
`position` INTEGER,
`created_at` DATETIME,
`updated_at` DATETIME,
PRIMARY KEY (`id`)
@@ -286,6 +287,7 @@ DROP TABLE IF EXISTS `attribute`;
CREATE TABLE `attribute`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`position` INTEGER,
`created_at` DATETIME,
`updated_at` DATETIME,
PRIMARY KEY (`id`)
@@ -387,7 +389,6 @@ CREATE TABLE `attribute_template`
`attribute_id` INTEGER NOT NULL,
`template_id` INTEGER NOT NULL,
`position` INTEGER,
`attribute_templatecol` VARCHAR(45),
`created_at` DATETIME,
`updated_at` DATETIME,
PRIMARY KEY (`id`),