phpcbf and added .gitea workflows
This commit is contained in:
@@ -5,41 +5,45 @@ namespace CakeCarts\Test\TestCase\Controller;
|
||||
|
||||
use Cake\TestSuite\IntegrationTestTrait;
|
||||
use Cake\TestSuite\TestCase;
|
||||
use CakeCarts\Controller\CartsController;
|
||||
|
||||
/**
|
||||
* CakeCarts\Controller\CartsController Test Case
|
||||
*
|
||||
* @uses \CakeCarts\Controller\CartsController
|
||||
*/
|
||||
class CartsControllerTest extends TestCase
|
||||
{
|
||||
use IntegrationTestTrait;
|
||||
class CartsControllerTest extends TestCase {
|
||||
|
||||
/**
|
||||
use IntegrationTestTrait;
|
||||
|
||||
/**
|
||||
* Test subject
|
||||
*
|
||||
* @var \CakeCarts\Model\Table\CartItemsTable
|
||||
*/
|
||||
protected $Carts;
|
||||
protected $Carts;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp(); // TODO: Change the autogenerated stub
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function setUp(): void {
|
||||
parent::setUp(); // TODO: Change the autogenerated stub
|
||||
|
||||
$config = $this->getTableLocator()->exists('Carts') ? [] : ['className' => CartsTable::class];
|
||||
$this->Carts = $this->getTableLocator()->get('Carts', $config);
|
||||
}
|
||||
$config = $this->getTableLocator()->exists('Carts') ? [] : ['className' => CartsTable::class];
|
||||
$this->Carts = $this->getTableLocator()->get('Carts', $config);
|
||||
}
|
||||
|
||||
public function testIndex(): void
|
||||
{
|
||||
$url = [
|
||||
'plugin' => 'CakeCarts',
|
||||
'controller' => 'Carts',
|
||||
'action' => 'index',
|
||||
];
|
||||
$this->get($url);
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function testIndex(): void {
|
||||
$url = [
|
||||
'plugin' => 'CakeCarts',
|
||||
'controller' => 'Carts',
|
||||
'action' => 'index',
|
||||
];
|
||||
$this->get($url);
|
||||
|
||||
$this->assertResponseCode(200);
|
||||
}
|
||||
|
||||
$this->assertResponseCode(200);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user