phpcs phpcbf
This commit is contained in:
@@ -3,77 +3,72 @@ declare(strict_types=1);
|
||||
|
||||
namespace CakeAddresses\Test\TestCase\Controller;
|
||||
|
||||
use CakeAddresses\Controller\CitiesController;
|
||||
use PHPUnit\Exception;
|
||||
|
||||
/**
|
||||
* CakeAddresses\Controller\CitiesController Test Case
|
||||
*
|
||||
* @uses \CakeAddresses\Controller\CitiesController
|
||||
*/
|
||||
class CitiesControllerTest extends BaseControllerTest
|
||||
{
|
||||
/**
|
||||
class CitiesControllerTest extends BaseControllerTest {
|
||||
|
||||
/**
|
||||
* Cities Table
|
||||
*
|
||||
* @var \CakeAddresses\Model\Table\CitiesTable
|
||||
*/
|
||||
protected $Cities;
|
||||
protected $Cities;
|
||||
|
||||
/**
|
||||
/**
|
||||
* Fixtures
|
||||
*
|
||||
* @var array<string>
|
||||
*/
|
||||
protected array $fixtures = [
|
||||
protected array $fixtures = [
|
||||
// 'plugin.CakeAddresses.Regions',
|
||||
// 'plugin.CakeAddresses.Subregions',
|
||||
'plugin.CakeAddresses.Countries',
|
||||
'plugin.CakeAddresses.States',
|
||||
'plugin.CakeAddresses.Cities',
|
||||
];
|
||||
'plugin.CakeAddresses.Countries',
|
||||
'plugin.CakeAddresses.States',
|
||||
'plugin.CakeAddresses.Cities',
|
||||
];
|
||||
|
||||
/**
|
||||
/**
|
||||
* setUp method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$this->Cities = $this->getTableLocator()->get('CakeAddresses.Cities');
|
||||
}
|
||||
protected function setUp(): void {
|
||||
parent::setUp();
|
||||
$this->Cities = $this->getTableLocator()->get('CakeAddresses.Cities');
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* tearDown method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function tearDown(): void
|
||||
{
|
||||
unset($this->Cities);
|
||||
protected function tearDown(): void {
|
||||
unset($this->Cities);
|
||||
|
||||
parent::tearDown();
|
||||
}
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Test select method
|
||||
*
|
||||
* Tests the select action with a logged in user
|
||||
*
|
||||
* @uses \CakeAddresses\Controller\CitiesController::select()
|
||||
* @throws Exception
|
||||
* @throws \PHPUnit\Exception
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testSelect(): void
|
||||
{
|
||||
$url = [
|
||||
'plugin' => 'CakeAddresses',
|
||||
'controller' => 'Cities',
|
||||
'action' => 'select',
|
||||
];
|
||||
$this->get($url);
|
||||
$this->assertResponseCode(200);
|
||||
}
|
||||
public function testSelect(): void {
|
||||
$url = [
|
||||
'plugin' => 'CakeAddresses',
|
||||
'controller' => 'Cities',
|
||||
'action' => 'select',
|
||||
];
|
||||
$this->get($url);
|
||||
$this->assertResponseCode(200);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user