phpcs phpcbf

This commit is contained in:
2026-01-23 18:36:15 -08:00
parent c249151eb4
commit ae5fa27b7d
42 changed files with 82022 additions and 82113 deletions

View File

@@ -3,99 +3,94 @@ declare(strict_types=1);
namespace CakeAddresses\Test\TestCase\Controller;
use CakeAddresses\Controller\StatesController;
use PHPUnit\Exception;
/**
* CakeAddresses\Controller\StatesController Test Case
*
* @uses \CakeAddresses\Controller\StatesController
*/
class StatesControllerTest extends BaseControllerTest
{
/**
class StatesControllerTest extends BaseControllerTest {
/**
* States Table
*
* @var \CakeAddresses\Model\Table\StatesTable
*/
protected $States;
/**
protected $States;
/**
* Fixtures
*
* @var array<string>
*/
protected array $fixtures = [
protected array $fixtures = [
// 'plugin.CakeAddresses.Regions',
// 'plugin.CakeAddresses.Subregions',
'plugin.CakeAddresses.Countries',
'plugin.CakeAddresses.States',
'plugin.CakeAddresses.Countries',
'plugin.CakeAddresses.States',
// 'plugin.CakeAddresses.Cities',
];
];
/**
/**
* setUp method
*
* @return void
*/
protected function setUp(): void
{
parent::setUp();
$this->States = $this->getTableLocator()->get('CakeAddresses.States');
}
protected function setUp(): void {
parent::setUp();
$this->States = $this->getTableLocator()->get('CakeAddresses.States');
}
/**
/**
* tearDown method
*
* @return void
*/
protected function tearDown(): void
{
unset($this->States);
protected function tearDown(): void {
unset($this->States);
parent::tearDown();
}
parent::tearDown();
}
/**
/**
* Test index method
*
* Tests the index action with a logged in user
*
* @uses \CakeAddresses\Controller\StatesController::index()
* @throws Exception
* @throws \PHPUnit\Exception
*
* @return void
*/
public function testIndexGet(): void
{
$url = [
'plugin' => 'CakeAddresses',
'controller' => 'States',
'action' => 'index',
];
$this->get($url);
$this->assertResponseCode(200);
}
public function testIndexGet(): void {
$url = [
'plugin' => 'CakeAddresses',
'controller' => 'States',
'action' => 'index',
];
$this->get($url);
$this->assertResponseCode(200);
}
/**
/**
* Test view method
*
* Tests the view action with a logged in user
*
* @uses \CakeAddresses\Controller\StatesController::view()
* @throws Exception
* @throws \PHPUnit\Exception
*
* @return void
*/
public function testViewGet(): void
{
$id = 1462;
$url = [
'plugin' => 'CakeAddresses',
'controller' => 'States',
'action' => 'view',
$id,
];
$this->get($url);
$this->assertResponseCode(200);
}
public function testViewGet(): void {
$id = 1462;
$url = [
'plugin' => 'CakeAddresses',
'controller' => 'States',
'action' => 'view',
$id,
];
$this->get($url);
$this->assertResponseCode(200);
}
}