add soft delete via muffin/trash to all product related tables
This commit is contained in:
@@ -77,6 +77,7 @@ class ExternalProductCatalogsTableTest extends TestCase
|
||||
// verify all behaviors loaded
|
||||
$expectedBehaviors = [
|
||||
'Timestamp',
|
||||
'Trash',
|
||||
];
|
||||
$behaviors = $this->ExternalProductCatalogs->behaviors();
|
||||
|
||||
|
||||
@@ -75,7 +75,9 @@ class ProductCatalogsTableTest extends TestCase
|
||||
}
|
||||
|
||||
// verify all behaviors loaded
|
||||
$expectedBehaviors = [];
|
||||
$expectedBehaviors = [
|
||||
'Trash',
|
||||
];
|
||||
$behaviors = $this->ProductCatalogs->behaviors();
|
||||
|
||||
$this->assertCount(count($expectedBehaviors), $behaviors);
|
||||
|
||||
@@ -78,6 +78,7 @@ class ProductCategoriesTableTest extends TestCase
|
||||
// verify all behaviors loaded
|
||||
$expectedBehaviors = [
|
||||
'Tree',
|
||||
'Trash',
|
||||
];
|
||||
$behaviors = $this->ProductCategories->behaviors();
|
||||
|
||||
|
||||
@@ -71,7 +71,9 @@ class ProductCategoryAttributeOptionsTableTest extends TestCase
|
||||
}
|
||||
|
||||
// verify all behaviors loaded
|
||||
$expectedBehaviors = [];
|
||||
$expectedBehaviors = [
|
||||
'Trash',
|
||||
];
|
||||
$behaviors = $this->ProductCategoryAttributeOptions->behaviors();
|
||||
|
||||
$this->assertCount(count($expectedBehaviors), $behaviors);
|
||||
|
||||
@@ -74,7 +74,9 @@ class ProductCategoryAttributesTableTest extends TestCase
|
||||
}
|
||||
|
||||
// verify all behaviors loaded
|
||||
$expectedBehaviors = [];
|
||||
$expectedBehaviors = [
|
||||
'Trash',
|
||||
];
|
||||
$behaviors = $this->ProductCategoryAttributes->behaviors();
|
||||
|
||||
$this->assertCount(count($expectedBehaviors), $behaviors);
|
||||
|
||||
@@ -73,7 +73,9 @@ class ProductsTableTest extends TestCase
|
||||
}
|
||||
|
||||
// verify all behaviors loaded
|
||||
$expectedBehaviors = [];
|
||||
$expectedBehaviors = [
|
||||
'Trash',
|
||||
];
|
||||
$behaviors = $this->Products->behaviors();
|
||||
|
||||
$this->assertCount(count($expectedBehaviors), $behaviors);
|
||||
|
||||
Reference in New Issue
Block a user