remove external product catalogs and join table for external product catalogs and product catalogs, out of scope of plugin

This commit is contained in:
bs
2026-08-26 00:53:14 -07:00
parent 7e646f80dc
commit 470a3e76af
24 changed files with 0 additions and 1444 deletions
@@ -1,108 +0,0 @@
<?php
declare(strict_types=1);
namespace CakeProducts\Test\TestCase\Model\Table;
use Cake\TestSuite\TestCase;
use CakeProducts\Model\Table\ExternalProductCatalogsTable;
use PHPUnit\Framework\Attributes\CoversClass;
/**
* CakeProducts\Model\Table\ExternalProductCatalogsTable Test Case
*/
#[CoversClass(ExternalProductCatalogsTable::class)]
class ExternalProductCatalogsTableTest extends TestCase {
/**
* Test subject
*
* @var \CakeProducts\Model\Table\ExternalProductCatalogsTable
*/
protected $ExternalProductCatalogs;
/**
* Fixtures
*
* @var array<string>
*/
protected array $fixtures = [
'plugin.CakeProducts.ExternalProductCatalogs',
'plugin.CakeProducts.ExternalProductCatalogsProductCatalogs',
'plugin.CakeProducts.ProductCatalogs',
];
/**
* setUp method
*
* @return void
*/
protected function setUp(): void {
parent::setUp();
$config = $this->getTableLocator()->exists('ExternalProductCatalogs') ? [] : ['className' => ExternalProductCatalogsTable::class];
$this->ExternalProductCatalogs = $this->getTableLocator()->get('ExternalProductCatalogs', $config);
}
/**
* tearDown method
*
* @return void
*/
protected function tearDown(): void {
unset($this->ExternalProductCatalogs);
parent::tearDown();
}
/**
* TestInitialize method
*
* @uses \CakeProducts\Model\Table\ExternalProductCatalogsTable::initialize
* @return void
*/
public function testInitialize(): void {
// verify all associations loaded
$expectedAssociations = [
'ProductCatalogs',
'ExternalProductCatalogsProductCatalogs',
];
$associations = $this->ExternalProductCatalogs->associations();
$this->assertCount(count($expectedAssociations), $associations);
foreach ($expectedAssociations as $expectedAssociation) {
$this->assertTrue($this->ExternalProductCatalogs->hasAssociation($expectedAssociation));
}
// verify all behaviors loaded
$expectedBehaviors = [
'Timestamp',
'Trash',
];
$behaviors = $this->ExternalProductCatalogs->behaviors();
$this->assertCount(count($expectedBehaviors), $behaviors);
foreach ($expectedBehaviors as $expectedBehavior) {
$this->assertTrue($this->ExternalProductCatalogs->hasBehavior($expectedBehavior));
}
}
/**
* Test validationDefault method
*
* @uses \CakeProducts\Model\Table\ExternalProductCatalogsTable::validationDefault
* @return void
*/
public function testValidationDefault(): void {
$this->markTestIncomplete('Not implemented yet.');
}
/**
* Test buildRules method
*
* @uses \CakeProducts\Model\Table\ExternalProductCatalogsTable::buildRules
* @return void
*/
public function testBuildRules(): void {
$this->markTestIncomplete('Not implemented yet.');
}
}
@@ -27,7 +27,6 @@ class ProductCatalogsTableTest extends TestCase {
*/
protected array $fixtures = [
'plugin.CakeProducts.ProductCatalogs',
'plugin.CakeProducts.ExternalProductCatalogsProductCatalogs',
'plugin.CakeProducts.ProductCategories',
];
@@ -63,7 +62,6 @@ class ProductCatalogsTableTest extends TestCase {
// verify all associations loaded
$expectedAssociations = [
'ProductCategories',
'ExternalProductCatalogs',
];
$associations = $this->ProductCatalogs->associations();