*/ protected array $fixtures = [ // 'plugin.CakeAddresses.Regions', // 'plugin.CakeAddresses.Subregions', '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'); } /** * tearDown method * * @return void */ protected function tearDown(): void { unset($this->States); parent::tearDown(); } /** * Test index method * * Tests the index action with a logged in user * * @uses \CakeAddresses\Controller\StatesController::index() * @throws Exception * * @return void */ 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 * * @return void */ public function testViewGet(): void { $id = 1462; $url = [ 'plugin' => 'CakeAddresses', 'controller' => 'States', 'action' => 'view', $id, ]; $this->get($url); $this->assertResponseCode(200); } }