for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Behat\Context\Ui\Admin;
use Behat\Behat\Context\Context;
use Sylius\Behat\NotificationType;
use Sylius\Behat\Service\NotificationCheckerInterface;
/**
* @author Arkadiusz Krakowiak <[email protected]>
final class NotificationContext implements Context
{
* @var NotificationCheckerInterface
private $notificationChecker;
* @param NotificationCheckerInterface $notificationChecker
public function __construct(NotificationCheckerInterface $notificationChecker)
$this->notificationChecker = $notificationChecker;
}
* @Then I should be notified that it has been successfully created
public function iShouldBeNotifiedItHasBeenSuccessfullyCreated()
$this->notificationChecker->checkNotification('has been successfully created.', NotificationType::success());
* @Then I should be notified that it has been successfully edited
public function iShouldBeNotifiedThatItHasBeenSuccessfullyEdited()
$this->notificationChecker->checkNotification('has been successfully updated.', NotificationType::success());
* @Then I should be notified that it has been successfully deleted
public function iShouldBeNotifiedThatItHasBeenSuccessfullyDeleted()
$this->notificationChecker->checkNotification('has been successfully deleted.', NotificationType::success());