add soft delete via muffin/trash to all product related tables

This commit is contained in:
2025-04-08 01:30:40 -07:00
parent 013bec1b54
commit cf7c67763c
33 changed files with 188 additions and 11 deletions

View File

@@ -77,6 +77,7 @@ class ExternalProductCatalogsTableTest extends TestCase
// verify all behaviors loaded
$expectedBehaviors = [
'Timestamp',
'Trash',
];
$behaviors = $this->ExternalProductCatalogs->behaviors();

View File

@@ -75,7 +75,9 @@ class ProductCatalogsTableTest extends TestCase
}
// verify all behaviors loaded
$expectedBehaviors = [];
$expectedBehaviors = [
'Trash',
];
$behaviors = $this->ProductCatalogs->behaviors();
$this->assertCount(count($expectedBehaviors), $behaviors);

View File

@@ -78,6 +78,7 @@ class ProductCategoriesTableTest extends TestCase
// verify all behaviors loaded
$expectedBehaviors = [
'Tree',
'Trash',
];
$behaviors = $this->ProductCategories->behaviors();

View File

@@ -71,7 +71,9 @@ class ProductCategoryAttributeOptionsTableTest extends TestCase
}
// verify all behaviors loaded
$expectedBehaviors = [];
$expectedBehaviors = [
'Trash',
];
$behaviors = $this->ProductCategoryAttributeOptions->behaviors();
$this->assertCount(count($expectedBehaviors), $behaviors);

View File

@@ -74,7 +74,9 @@ class ProductCategoryAttributesTableTest extends TestCase
}
// verify all behaviors loaded
$expectedBehaviors = [];
$expectedBehaviors = [
'Trash',
];
$behaviors = $this->ProductCategoryAttributes->behaviors();
$this->assertCount(count($expectedBehaviors), $behaviors);

View File

@@ -73,7 +73,9 @@ class ProductsTableTest extends TestCase
}
// verify all behaviors loaded
$expectedBehaviors = [];
$expectedBehaviors = [
'Trash',
];
$behaviors = $this->Products->behaviors();
$this->assertCount(count($expectedBehaviors), $behaviors);