-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Pimcore] add tests for DataObjectBatchListing
- Loading branch information
1 parent
7d83b7e
commit 8d77c71
Showing
3 changed files
with
112 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,21 @@ | ||
@domain @pimcore | ||
Feature: Using the CoreShop Batch List | ||
In order to use the CoreShop Batch List | ||
I want to create a new Pimcore Class and | ||
iterate over all objects with the CoreShop Batch List | ||
|
||
Background: | ||
Given there is a pimcore class "Test" | ||
And the definition has a checkbox field "enabled" | ||
And the definition has a localized input field "name" | ||
And the definitions parent class is set to "\CoreShop\Behat\Model\Index\TestEnableIndex" | ||
And there are 20 instances of behat-class "Test" with key-prefix "test" | ||
|
||
Scenario: Iterate the Class with Batch Listing | ||
Then iterating the behat-class "Test" should return 20 objects | ||
|
||
Scenario: Iterate the Class with Batch Listing with a offset | ||
Then iterating the behat-class "Test" with a offset of 5 should return 15 objects | ||
|
||
Scenario: Iterate the Class with Batch Listing with a offset and limit | ||
Then iterating the behat-class "Test" with a offset of 5 and limit of 1 should return 1 objects |
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