Files
cake-addresses/tests/TestCase/Model/Table/SubregionsTableTest.php

75 lines
1.5 KiB
PHP
Raw Normal View History

2025-11-18 00:43:34 -08:00
<?php
declare(strict_types=1);
namespace CakeAddresses\Test\TestCase\Model\Table;
use Cake\TestSuite\TestCase;
use CakeAddresses\Model\Table\SubregionsTable;
/**
* CakeAddresses\Model\Table\SubregionsTable Test Case
*/
2026-01-23 18:36:15 -08:00
class SubregionsTableTest extends TestCase {
/**
2025-11-18 00:43:34 -08:00
* Test subject
*
* @var \CakeAddresses\Model\Table\SubregionsTable
*/
2026-01-23 18:36:15 -08:00
protected $Subregions;
2025-11-18 00:43:34 -08:00
2026-01-23 18:36:15 -08:00
/**
2025-11-18 00:43:34 -08:00
* Fixtures
*
* @var array<string>
*/
2026-01-23 18:36:15 -08:00
protected array $fixtures = [
'plugin.CakeAddresses.Subregions',
'plugin.CakeAddresses.Regions',
'plugin.CakeAddresses.Countries',
];
2025-11-18 00:43:34 -08:00
2026-01-23 18:36:15 -08:00
/**
2025-11-18 00:43:34 -08:00
* setUp method
*
* @return void
*/
2026-01-23 18:36:15 -08:00
protected function setUp(): void {
parent::setUp();
$config = $this->getTableLocator()->exists('Subregions') ? [] : ['className' => SubregionsTable::class];
$this->Subregions = $this->getTableLocator()->get('Subregions', $config);
}
2025-11-18 00:43:34 -08:00
2026-01-23 18:36:15 -08:00
/**
2025-11-18 00:43:34 -08:00
* tearDown method
*
* @return void
*/
2026-01-23 18:36:15 -08:00
protected function tearDown(): void {
unset($this->Subregions);
2025-11-18 00:43:34 -08:00
2026-01-23 18:36:15 -08:00
parent::tearDown();
}
2025-11-18 00:43:34 -08:00
2026-01-23 18:36:15 -08:00
/**
2025-11-18 00:43:34 -08:00
* Test validationDefault method
*
* @uses \CakeAddresses\Model\Table\SubregionsTable::validationDefault()
2026-01-23 18:36:15 -08:00
* @return void
2025-11-18 00:43:34 -08:00
*/
2026-01-23 18:36:15 -08:00
public function testValidationDefault(): void {
$this->markTestIncomplete('Not implemented yet.');
}
2025-11-18 00:43:34 -08:00
2026-01-23 18:36:15 -08:00
/**
2025-11-18 00:43:34 -08:00
* Test buildRules method
*
* @uses \CakeAddresses\Model\Table\SubregionsTable::buildRules()
2026-01-23 18:36:15 -08:00
* @return void
2025-11-18 00:43:34 -08:00
*/
2026-01-23 18:36:15 -08:00
public function testBuildRules(): void {
$this->markTestIncomplete('Not implemented yet.');
}
2025-11-18 00:43:34 -08:00
}