variants controller tests failing
This commit is contained in:
@@ -39,6 +39,8 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
|
||||
'plugin.CakeProducts.ProductCategoryVariants',
|
||||
'plugin.CakeProducts.ProductCategories',
|
||||
'plugin.CakeProducts.Products',
|
||||
'plugin.CakeProducts.ProductSkus',
|
||||
'plugin.CakeProducts.ProductPhotos',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -78,7 +80,7 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
|
||||
*/
|
||||
public function testIndexGet(): void
|
||||
{
|
||||
$this->loginUserByRole('admin');
|
||||
//$this->loginUserByRole('admin');
|
||||
$url = [
|
||||
'plugin' => 'CakeProducts',
|
||||
'controller' => 'ProductCategoryVariants',
|
||||
@@ -101,7 +103,7 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
|
||||
public function testViewGet(): void
|
||||
{
|
||||
$id = '5a386e9f-6e7a-4ae7-9360-c8e529f78d93';
|
||||
$this->loginUserByRole('admin');
|
||||
//$this->loginUserByRole('admin');
|
||||
$url = [
|
||||
'plugin' => 'CakeProducts',
|
||||
'controller' => 'ProductCategoryVariants',
|
||||
@@ -126,7 +128,7 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
|
||||
{
|
||||
$cntBefore = $this->ProductCategoryVariants->find()->count();
|
||||
|
||||
$this->loginUserByRole('admin');
|
||||
//$this->loginUserByRole('admin');
|
||||
$url = [
|
||||
'plugin' => 'CakeProducts',
|
||||
'controller' => 'ProductCategoryVariants',
|
||||
@@ -154,7 +156,7 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
|
||||
$cntBefore = $this->ProductCategoryVariants->find()->count();
|
||||
$cntBeforeOptions = $this->ProductCategoryVariantOptions->find()->count();
|
||||
|
||||
$this->loginUserByRole('admin');
|
||||
//$this->loginUserByRole('admin');
|
||||
$url = [
|
||||
'plugin' => 'CakeProducts',
|
||||
'controller' => 'ProductCategoryVariants',
|
||||
@@ -202,7 +204,7 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
|
||||
{
|
||||
$cntBefore = $this->ProductCategoryVariants->find()->count();
|
||||
|
||||
$this->loginUserByRole('admin');
|
||||
//$this->loginUserByRole('admin');
|
||||
$url = [
|
||||
'plugin' => 'CakeProducts',
|
||||
'controller' => 'ProductCategoryVariants',
|
||||
@@ -232,7 +234,7 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
|
||||
*/
|
||||
public function testEditGet(): void
|
||||
{
|
||||
$this->loginUserByRole('admin');
|
||||
//$this->loginUserByRole('admin');
|
||||
$id = '5a386e9f-6e7a-4ae7-9360-c8e529f78d93';
|
||||
|
||||
$url = [
|
||||
@@ -257,7 +259,7 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
|
||||
*/
|
||||
public function testEditPutLoggedInSuccess(): void
|
||||
{
|
||||
$this->loginUserByRole('admin');
|
||||
//$this->loginUserByRole('admin');
|
||||
$id = '5a386e9f-6e7a-4ae7-9360-c8e529f78d93';
|
||||
$before = $this->ProductCategoryVariants->get($id);
|
||||
$url = [
|
||||
@@ -293,7 +295,7 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
|
||||
*/
|
||||
public function testEditPutLoggedInFailure(): void
|
||||
{
|
||||
$this->loginUserByRole('admin');
|
||||
//$this->loginUserByRole('admin');
|
||||
$id = '5a386e9f-6e7a-4ae7-9360-c8e529f78d93';
|
||||
$before = $this->ProductCategoryVariants->get($id);
|
||||
$url = [
|
||||
@@ -328,7 +330,7 @@ class ProductCategoryVariantsControllerTest extends BaseControllerTest
|
||||
{
|
||||
$cntBefore = $this->ProductCategoryVariants->find()->count();
|
||||
|
||||
$this->loginUserByRole('admin');
|
||||
//$this->loginUserByRole('admin');
|
||||
$id = '5a386e9f-6e7a-4ae7-9360-c8e529f78d93';
|
||||
|
||||
$url = [
|
||||
|
||||
Reference in New Issue
Block a user