-
Notifications
You must be signed in to change notification settings - Fork 61
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
1 parent
da2d3a7
commit 00f3e1e
Showing
3 changed files
with
21 additions
and
8 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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
<?php | ||
|
||
/* | ||
* This file has been created by developers from BitBag. | ||
* Feel free to contact us once you face any issues or want to start | ||
* You can find more information about us on https://bitbag.io and write us | ||
* an email on [email protected]. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace spec\BitBag\SyliusWishlistPlugin\EventSubscriber; | ||
|
@@ -22,12 +29,12 @@ final class LoggedUserWishlistSubscriberSpec extends ObjectBehavior | |
public function let( | ||
SectionProviderInterface $uriBasedSectionContext, | ||
WishlistsResolverInterface $wishlistsResolver, | ||
EntityManagerInterface $entityManager | ||
EntityManagerInterface $entityManager, | ||
): void { | ||
$this->beConstructedWith( | ||
$uriBasedSectionContext, | ||
$wishlistsResolver, | ||
$entityManager | ||
$entityManager, | ||
); | ||
} | ||
|
||
|
@@ -40,7 +47,7 @@ public function it_is_initializable(): void | |
public function it_returns_if_invalid_section_on_implicit_login( | ||
SectionProviderInterface $uriBasedSectionContext, | ||
UserEvent $event, | ||
AdminSection $adminSection | ||
AdminSection $adminSection, | ||
): void { | ||
$uriBasedSectionContext->getSection()->willReturn($adminSection)->shouldBeCalledOnce(); | ||
|
||
|
@@ -54,7 +61,7 @@ public function it_returns_if_invalid_user_on_implicit_login( | |
UserEvent $event, | ||
ShopSection $shopSection, | ||
AdminUserInterface $adminUser, | ||
WishlistsResolverInterface $wishlistsResolver | ||
WishlistsResolverInterface $wishlistsResolver, | ||
): void { | ||
$uriBasedSectionContext->getSection()->willReturn($shopSection)->shouldBeCalledOnce(); | ||
$event->getUser()->willReturn($adminUser)->shouldBeCalledOnce(); | ||
|
@@ -73,7 +80,7 @@ public function it_assign_shop_user_to_wishlists_without_shop_user_on_login( | |
WishlistInterface $wishlist, | ||
WishlistInterface $wishlist2, | ||
ShopUserInterface $shopUser2, | ||
EntityManagerInterface $entityManager | ||
EntityManagerInterface $entityManager, | ||
): void { | ||
$wishlists = [ | ||
$wishlist->getWrappedObject(), | ||
|
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
<?php | ||
|
||
/* | ||
* This file has been created by developers from BitBag. | ||
* Feel free to contact us once you face any issues or want to start | ||
* You can find more information about us on https://bitbag.io and write us | ||
* an email on [email protected]. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace BitBag\SyliusWishlistPlugin\EventSubscriber; | ||
|
@@ -21,7 +28,7 @@ final class LoggedUserWishlistSubscriber implements EventSubscriberInterface | |
public function __construct( | ||
private SectionProviderInterface $uriBasedSectionContext, | ||
private WishlistsResolverInterface $wishlistsResolver, | ||
private EntityManagerInterface $entityManager | ||
private EntityManagerInterface $entityManager, | ||
) { | ||
} | ||
|
||
|
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