-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CC-20636: Added missing PublisherTriggerPlugin plugins - Part 1. (#9773)
Added missing PublisherTriggerPlugin plugins - Part 1.
- Loading branch information
1 parent
d4efaaa
commit 97a679c
Showing
12 changed files
with
189 additions
and
5 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
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
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
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
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
52 changes: 52 additions & 0 deletions
52
tests/SprykerTest/Zed/FileManager/Business/Facade/GetFileCollectionTest.php
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,52 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved. | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ | ||
|
||
namespace SprykerTest\Zed\FileManager\Business\Facade; | ||
|
||
use Codeception\Test\Unit; | ||
use Generated\Shared\Transfer\FileCriteriaTransfer; | ||
use Generated\Shared\Transfer\PaginationTransfer; | ||
use SprykerTest\Zed\FileManager\FileManagerBusinessTester; | ||
|
||
/** | ||
* Auto-generated group annotations | ||
* | ||
* @group SprykerTest | ||
* @group Zed | ||
* @group FileManager | ||
* @group Business | ||
* @group Facade | ||
* @group GetFileCollectionTest | ||
* Add your own group annotations below this line | ||
*/ | ||
class GetFileCollectionTest extends Unit | ||
{ | ||
/** | ||
* @var \SprykerTest\Zed\FileManager\FileManagerBusinessTester | ||
*/ | ||
protected FileManagerBusinessTester $tester; | ||
|
||
/** | ||
* @return void | ||
*/ | ||
public function testGetFileCollectionReturnsCollectionWithFiveFilesWhileHavingLimitOffsetPaginationApplied(): void | ||
{ | ||
// Arrange | ||
$this->tester->insertFilesCollection(15); | ||
$fileCriteriaTransfer = (new FileCriteriaTransfer()) | ||
->setPagination( | ||
(new PaginationTransfer())->setLimit(5)->setOffset(10), | ||
); | ||
|
||
// Act | ||
$fileCollectionTransfer = $this->tester->getFacade() | ||
->getFileCollection($fileCriteriaTransfer); | ||
|
||
// Assert | ||
$this->assertCount(5, $fileCollectionTransfer->getFiles()); | ||
} | ||
} |
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
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