not used to plugin testing - trying to get working but fixtures not working yet
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user