for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of monofony.
*
* (c) Mobizel
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace App\Behat\Context\Ui\Backend;
use App\Behat\Page\Backend\DashboardPage;
use Behat\Behat\Context\Context;
use Webmozart\Assert\Assert;
class DashboardContext implements Context
{
/** @var DashboardPage */
private $dashboardPage;
public function __construct(DashboardPage $dashboardPage)
$this->dashboardPage = $dashboardPage;
}
/**
* @When I open administration dashboard
public function iOpenAdministrationDashboard()
$this->dashboardPage->open();
* @Then I should see :number new customers in the list
public function iShouldSeeNewCustomersInTheList($number)
Assert::same($this->dashboardPage->getNumberOfNewCustomersInTheList(), (int) $number);
* @Then I should see :number new customers
public function iShouldSeeNewCustomers($number)
Assert::same($this->dashboardPage->getNumberOfNewCustomers(), (int) $number);