79 lines
1.6 KiB
PHP
79 lines
1.6 KiB
PHP
|
|
<?php
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace CakeAddresses\Test\TestCase\Model\Table;
|
||
|
|
|
||
|
|
use Cake\TestSuite\TestCase;
|
||
|
|
use CakeAddresses\Model\Table\StatesTable;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* CakeAddresses\Model\Table\StatesTable Test Case
|
||
|
|
*/
|
||
|
|
class StatesTableTest extends TestCase
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Test subject
|
||
|
|
*
|
||
|
|
* @var \CakeAddresses\Model\Table\StatesTable
|
||
|
|
*/
|
||
|
|
protected $States;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Fixtures
|
||
|
|
*
|
||
|
|
* @var array<string>
|
||
|
|
*/
|
||
|
|
protected array $fixtures = [
|
||
|
|
'plugin.CakeAddresses.States',
|
||
|
|
'plugin.CakeAddresses.Countries',
|
||
|
|
'plugin.CakeAddresses.Addresses',
|
||
|
|
'plugin.CakeAddresses.Cities',
|
||
|
|
];
|
||
|
|
|
||
|
|
/**
|
||
|
|
* setUp method
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
protected function setUp(): void
|
||
|
|
{
|
||
|
|
parent::setUp();
|
||
|
|
$config = $this->getTableLocator()->exists('States') ? [] : ['className' => StatesTable::class];
|
||
|
|
$this->States = $this->getTableLocator()->get('States', $config);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* tearDown method
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
protected function tearDown(): void
|
||
|
|
{
|
||
|
|
unset($this->States);
|
||
|
|
|
||
|
|
parent::tearDown();
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Test validationDefault method
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
* @uses \CakeAddresses\Model\Table\StatesTable::validationDefault()
|
||
|
|
*/
|
||
|
|
public function testValidationDefault(): void
|
||
|
|
{
|
||
|
|
$this->markTestIncomplete('Not implemented yet.');
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Test buildRules method
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
* @uses \CakeAddresses\Model\Table\StatesTable::buildRules()
|
||
|
|
*/
|
||
|
|
public function testBuildRules(): void
|
||
|
|
{
|
||
|
|
$this->markTestIncomplete('Not implemented yet.');
|
||
|
|
}
|
||
|
|
}
|