not used to plugin testing - trying to get working but fixtures not working yet

This commit is contained in:
2025-03-26 00:07:05 -07:00
parent 23147fc574
commit b17634c08a
21 changed files with 628 additions and 58 deletions

View File

@@ -9,6 +9,13 @@ class BaseControllerTest extends TestCase
{
use IntegrationTestTrait;
protected function setUp(): void
{
parent::setUp(); // TODO: Change the autogenerated stub
$this->loadPlugins(['CakeProducts']);
}
public function loginUserByRole(string $role = 'admin'): void
{
$this->session(['Auth.User.id' => 1]);