-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright © OXID eSales AG. All rights reserved. | ||
* See LICENSE file for license details. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace OxidEsales\EshopCommunity\Tests\Codeception\Acceptance; | ||
|
||
use Codeception\Util\Fixtures; | ||
use OxidEsales\Codeception\Step\CategoryNavigation; | ||
use OxidEsales\EshopCommunity\Tests\Codeception\Support\AcceptanceTester; | ||
use PHPUnit\Framework\Attributes\Group; | ||
|
||
|
||
#[Group('category_description')] | ||
final class CategoryDetailCest | ||
{ | ||
public function categoryDetailPageInformation(AcceptanceTester $I): void | ||
{ | ||
$I->wantToTest('category information in detail page'); | ||
|
||
$categoryData = Fixtures::get('testCategory0'); | ||
|
||
$categoryNavigation = new CategoryNavigation($I); | ||
$categoryDetailPage = $categoryNavigation->openCategoryDetailsPage($categoryData['id']); | ||
$categoryDetailPage->seeCategoryData($categoryData); | ||
} | ||
|
||
public function subcategoryDetailPageInformation(AcceptanceTester $I): void | ||
{ | ||
$I->wantToTest('subcategory information in detail page'); | ||
|
||
$categoryData = Fixtures::get('testCategory0'); | ||
$subCategoryData = Fixtures::get('testCategory1'); | ||
|
||
$categoryNavigation = new CategoryNavigation($I); | ||
$categoryDetailPage = $categoryNavigation->openCategoryDetailsPage($categoryData['id']); | ||
$categoryDetailPage->seeSubCategoryData($subCategoryData); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright © OXID eSales AG. All rights reserved. | ||
* See LICENSE file for license details. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
return [ | ||
'testCategory0' => [ | ||
'id' => 'testcategory0', | ||
'title' => 'Test category 0 [EN] šÄßüл', | ||
'description' => 'Test category 0 desc [EN] šÄßüл', | ||
'longDescription' => 'Category 0 long desc [EN] šÄßüл', | ||
], | ||
'testCategory1' => [ | ||
'id' => 'testcategory1', | ||
'title' => 'Test category 1 [EN] šÄßüл', | ||
'description' => 'Test category 1 desc [EN] šÄßüл', | ||
'longDescription' => 'Category 1 long desc [EN] šÄßüл', | ||
], | ||
]; |